This is already prevented by the API, but this will make the error message cleaner and easier to understand for the user. Example of old error message: ``` $ gh cs edit -c cwndrws-redacted -d "some silly name" error editing codespace: HTTP 422: your codespace has an operation pending: updating to a sku with a different amount of storage; please wait until this operation is complete (https://api.github.com/user/codespaces/cwndrws-redacted) exit status 1 ``` Example of new error message: ``` $ gh cs edit -c cwndrws-redacted -d "some silly name" error editing codespace: codespace is disabled while it has a pending operation: Changing machine types... exit status 1 ``` |
||
|---|---|---|
| .. | ||
| api.go | ||
| api_test.go | ||