Commit c308a87
authored
Fixes
* fix: Handle missing edge app in get_app
The `get_app` function panicked when trying to access the first element
of the returned app list if the list was empty (e.g., app not found).
This commit adds a check for an empty list in `get_app` and returns
a `ResourceNotFound` error in that case. It also adds the
`ResourceNotFound` variant to the `CommandError` enum.
* Bumps deps
* run clippy
* Rolls back Cargo.lock
* Backward compatability
* Fixes compatability issues
* Rename ResourceNotFound to AppNotFoundedge-app delete (#235)1 parent 28d18b8 commit c308a87
2 files changed
+11
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | | - | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
77 | 85 | | |
78 | 86 | | |
79 | 87 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
| 133 | + | |
| 134 | + | |
133 | 135 | | |
134 | 136 | | |
135 | 137 | | |
| |||
0 commit comments