planetscale / cli

The CLI for PlanetScale Database
https://planetscale.com/cli
Apache License 2.0
604 stars 51 forks source link

internal/update: cleanup and error handling #795

Closed mdlayher closed 11 months ago

mdlayher commented 11 months ago

The error handling here is pretty lax and could use tidying up. We don't want to throw away errors from writing the state file for sure.

Keep things scoped as tightly as possible and avoid passing a nil pointer into the JSON unmarshaler.