From 286d7ced11a07686712b07483aacfb684f3311a5 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Mon, 24 Feb 2020 20:11:23 +0100 Subject: ipv6-update: use $LogAndError --- ipv6-update | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ipv6-update b/ipv6-update index 1004119..52c02db 100644 --- a/ipv6-update +++ b/ipv6-update @@ -7,10 +7,10 @@ :local PdPrefix $"pd-prefix"; :global ParseKeyValueStore; +:global LogAndError; :if ([ :typeof $PdPrefix ] = "nothing") do={ - :log error "This script is supposed to run from ipv6 dhcp-client."; - :error "Error: See log for details."; + $LogAndError "This script is supposed to run from ipv6 dhcp-client."; } :local Pool [ / ipv6 pool get [ find where prefix=$PdPrefix ] name ]; -- cgit v1.2.3-70-g09d2