mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-04-04 14:29:45 +00:00
assorted fixes
This commit is contained in:
committed by
Aiden McClelland
parent
7aaeefc180
commit
c18a119c70
@@ -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