mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-04-01 21:13:09 +00:00
assorted fixes
This commit is contained in:
@@ -38,7 +38,7 @@ fn inner_main() -> Result<(), Error> {
|
||||
|e: RpcError| {
|
||||
match e.data {
|
||||
Some(Value::String(s)) => eprintln!("{}: {}", e.message, s),
|
||||
Some(Value::Object(o)) => if let Some(Value::String(s)) = o.get("message") {
|
||||
Some(Value::Object(o)) => if let Some(Value::String(s)) = o.get("details") {
|
||||
eprintln!("{}: {}", e.message, s)
|
||||
}
|
||||
Some(a) => eprintln!("{}: {}", e.message, a),
|
||||
|
||||
@@ -35,7 +35,7 @@ fn inner_main() -> Result<(), Error> {
|
||||
|e: RpcError| {
|
||||
match e.data {
|
||||
Some(Value::String(s)) => eprintln!("{}: {}", e.message, s),
|
||||
Some(Value::Object(o)) => if let Some(Value::String(s)) = o.get("message") {
|
||||
Some(Value::Object(o)) => if let Some(Value::String(s)) = o.get("details") {
|
||||
eprintln!("{}: {}", e.message, s)
|
||||
}
|
||||
Some(a) => eprintln!("{}: {}", e.message, a),
|
||||
|
||||
Reference in New Issue
Block a user