fix: add actionable guidance to destroy_server failures and service timeouts (#959)

When server destruction fails, users are left with a bare error message and
no indication that they may still be billed for a running server. This adds
dashboard URLs and clear warnings to destroy_server errors across 9 clouds
(Hetzner, UpCloud, Contabo, Netcup, RamNode, Hostinger, HOSTKEY, OVH,
Latitude). Also improves error messages for Koyeb (app creation, service
deployment, deployment timeout, instance ID), GitHub Codespaces (creation
failure, readiness timeout), and E2B (sandbox creation failure).

Agent: ux-engineer

Co-authored-by: A <6723574+louisgv@users.noreply.github.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
A 2026-02-13 09:38:58 -08:00 committed by GitHub
parent 3c3c697ea5
commit 5ebe3e5a13
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 107 additions and 17 deletions

View file

@ -301,7 +301,11 @@ destroy_server() {
response=$(netcup_api "deleteVServer" "{\"vserverid\": \"$server_id\"}")
if ! _netcup_is_success "$response"; then
log_error "Failed to destroy VPS: $response"
log_error "Failed to destroy VPS $server_id"
log_error "API Error: $(_extract_json_field "$response" "d.get('longmessage','Unknown error')")"
log_error ""
log_error "The VPS may still be running and incurring charges."
log_error "Delete it manually at: https://ccp.netcup.net/"
return 1
fi