From ca28694dd79e90057d71c9c6814227e8c5f90c37 Mon Sep 17 00:00:00 2001 From: Richard Hansen Date: Tue, 23 Jul 2024 00:49:21 -0400 Subject: [PATCH] dnsmadeeasy: Don't assume the result code is known --- ddclient.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ddclient.in b/ddclient.in index 1056a1c..0f288c4 100755 --- a/ddclient.in +++ b/ddclient.in @@ -6610,7 +6610,8 @@ sub nic_dnsmadeeasy_update { success("$h: IP address set to $ip"); } else { $config{$h}{'status'} = 'failed'; - failed("$h: Server said: $returned: $messages{$returned}"); + my $err = $messages{$returned} ? "$returned: $messages{$returned}" : $returned; + failed("$h: Server said: $err"); } } }