and messaging
This commit is contained in:
parent
d43ef34abc
commit
cb62c68633
@ -303,7 +303,7 @@ unless($DRY_RUN) {
|
|||||||
records => [ $record->[1] ]
|
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
|
# Update
|
||||||
@ -313,7 +313,7 @@ unless($DRY_RUN) {
|
|||||||
"Content-Type" => "application/json",
|
"Content-Type" => "application/json",
|
||||||
"Content" => to_json({ records => [ $record->[1] ] }),
|
"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")
|
_info("Finished applying changes")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user