diff options
author | Christian Hesse <mail@eworm.de> | 2020-02-24 19:58:17 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2020-02-26 11:51:49 +0100 |
commit | 9b9ad20b3d2a8bbb92ee35f5d3481508ccac9654 (patch) | |
tree | b6d64422c47cd198a46cb364e85bf9708b8557a7 | |
parent | bb9a4e6ecf25c63fae23d67281925215b67019eb (diff) |
packages-update: use $LogAndError
-rw-r--r-- | packages-update | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages-update b/packages-update index 8918656..04a25c8 100644 --- a/packages-update +++ b/packages-update @@ -7,6 +7,7 @@ :global DownloadPackage; :global ScriptFromTerminal; :global ScriptLock; +:global LogAndError; $ScriptLock "packages-update"; @@ -25,8 +26,7 @@ $ScriptLock "packages-update"; :foreach Package in=[ / system package find where !bundle ] do={ :local PkgName [ / system package get $Package name ]; if ([ $DownloadPackage $PkgName ($Update->"latest-version") ] = false) do={ - :log error ("Download for package " . $PkgName . " failed."); - :error "Error: See log for details."; + $LogAndError ("Download for package " . $PkgName . " failed."); } } |