From cb62c68633c7ccc761c87d64404797bf124a0322 Mon Sep 17 00:00:00 2001 From: Matthew Slowe Date: Sat, 2 Sep 2023 14:55:35 +0100 Subject: [PATCH] and messaging --- manage-dns.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/manage-dns.pl b/manage-dns.pl index cfe3528..155afe9 100755 --- a/manage-dns.pl +++ b/manage-dns.pl @@ -303,7 +303,7 @@ unless($DRY_RUN) { records => [ $record->[1] ] }) ); - warn "Failed to create $url: " . $res->status_line . "\n" . $res->content unless $res->is_success; + warn "Failed to create $record->[0]: " . $res->status_line . "\n" . $res->content unless $res->is_success; } # Update @@ -313,7 +313,7 @@ unless($DRY_RUN) { "Content-Type" => "application/json", "Content" => to_json({ records => [ $record->[1] ] }), ); - warn "Failed to update $url: " . $res->status_line unless $res->is_success; + warn "Failed to update $record->[0]: " . $res->status_line unless $res->is_success; } _info("Finished applying changes")