upload-backup: use $LogAndError

This commit is contained in:
Christian Hesse 2020-02-24 20:14:21 +01:00
parent c766d2dfda
commit 0e6438eaff

View file

@ -16,11 +16,11 @@
:global CharacterReplace; :global CharacterReplace;
:global DeviceInfo; :global DeviceInfo;
:global SendNotification; :global SendNotification;
:global LogAndError;
:if ($BackupSendBinary != true && \ :if ($BackupSendBinary != true && \
$BackupSendExport != true) do={ $BackupSendExport != true) do={
:log error ("Configured to send neither backup nor config export."); $LogAndError ("Configured to send neither backup nor config export.");
:error "Error: See log for details.";
} }
# filename based on identity # filename based on identity