ipfs-shipyard / ipfs-deploy

Zero-Config CLI to Deploy Static Websites to IPFS
Other
1.16k stars 122 forks source link

Better error messages #129

Closed sixcorners closed 3 years ago

sixcorners commented 4 years ago
 ✖ 💔  Updating Cloudflare DNS didn't work.
32   ┌──────────────────────────────────────────────────────────────────────────┐
33   │                                                                          │
34   │ HTTPError: Response code 400 (Bad Request)                               │
35   │                                                                          │
36   └──────────────────────────────────────────────────────────────────────────┘

I really wish this included why. The 403 error has an errors key in the json response that contains error messages that say why it didn't work. I bet this 400 Bad Request response also had error messages. This cli should output those messages.

mikeshultz commented 4 years ago

Truncating traces when using this as a library also doesn't help much. Might be nice to at least turn off the formatting.

hacdias commented 3 years ago

On the next major version I'm working on (#208), the stack trace of the errors will be printed!