Open fearphage opened 5 years ago
I changed the error messages to not send the json blob. So it's just the file name and at most the json key name now.
➜ starphleet git:(fromJson-errors) bash meh.sh '{"json":"here","cat":"pants"}' test
fromJson(meh.sh): error reading key (test) from json
➜ starphleet git:(fromJson-errors) bash meh.sh '{"json":"here","cat":"pants"' test
fromJson(meh.sh): This isn't json!
I made the errors from
fromJson
more informative:The goal was for the file name to be the
orders
file, but I'm not really sure how it's called or if that is the first (0th) parameter even. It was an attempt at making the messages more meaningful.FYI This is the contents of
meh.sh
which I assume sort of mimics the wayorders
are run, but I'm not a starphleet-ologist yet so ¯\_(ツ)_/¯ :