From 596fb5f83582b982c0ec336c8cb65e8b76665ba1 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Fri, 3 Apr 2020 16:45:28 +0200 Subject: global-functions: $CertificateDownload: use $LogPrintExit --- global-functions | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'global-functions') diff --git a/global-functions b/global-functions index 9375688..3dba487 100644 --- a/global-functions +++ b/global-functions @@ -88,11 +88,12 @@ :global ScriptUpdatesUrlSuffix; :global CertificateNameByCN; + :global LogPrintExit; :global UrlEncode; :global WaitForFile; - :log info ("Downloading and importing certificate with " . \ - "CommonName \"" . $CommonName . "\"."); + $LogPrintExit info ("Downloading and importing certificate with " . \ + "CommonName \"" . $CommonName . "\".") false; :do { :local LocalFileName ($CommonName . ".pem"); :local UrlFileName ([ $UrlEncode $CommonName ] . ".pem"); @@ -108,7 +109,7 @@ $CertificateNameByCN [ / certificate get $Cert common-name ]; } } on-error={ - :log warning "Failed imprting certificate!"; + $LogPrintExit warning ("Failed imprting certificate!") false; :return false; } :return true; -- cgit v1.2.3-54-g00ecf