feat: handle JSON encoding errors as errors, without panic
modified src/bin/cib.rs
@@ -91,8 +91,10 @@ struct ConfigCmd {
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -225,6 +227,9 @@ enum CibError {
|
|
|
|
|
|
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -259,6 +264,10 @@ impl CibError {
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
modified src/config.rs
@@ -42,8 +42,8 @@ impl Config {
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
|
|
|
|
|
@@ -88,4 +88,8 @@ pub enum ConfigError {
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
|