dinahosting: Fix missing argument for log message format specifier

Also use string interpolation for readability and to reduce the
chances of reintroducing a bug like this in the future.
This commit is contained in:
Richard Hansen 2024-07-31 00:06:18 -04:00
parent 706ba713e0
commit 42d635c2df

View file

@ -6833,7 +6833,7 @@ sub nic_dinahosting_update {
my $code = $1 // '<undefined>';
$reply =~ /^errors_0_message = '(.*)'$/m;
my $message = $1 // '<undefined>';
failed("updating %s: error %d: %s", $code, $message);
failed("updating $h: error $code: $message");
next;
}
$config{$h}{'ip'} = $ip;