From 9b9ad20b3d2a8bbb92ee35f5d3481508ccac9654 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Mon, 24 Feb 2020 19:58:17 +0100 Subject: packages-update: use $LogAndError --- packages-update | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'packages-update') 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."); } } -- cgit v1.2.3-70-g09d2