Cleaner output for simple bash errors?

6 views
Skip to first unread message

P Jakobsen

unread,
Mar 11, 2016, 5:27:33 PM3/11/16
to drake-workflow
Hi, when I have a simple error in my bash commands, it seems odd to get a massive java stack trace, plus some weird json that's hard to read. There must be a cleaner way to get some simple feedback, right?

clojure.lang.ExceptionInfo: shell command failed with exit code 126 {:file "$INPUT > awk -F, '{ print $1 }'\n", :msg "shell command failed with exit code 126", :cmd ("/bin/bash" ".drake/shell-02d7683f4e9c52081466125b86a1dd4d.bat"), :opts {:die true, :no-stdin nil, :err [#<PrintStream java.io.PrintStream@6bce6f1> #<BufferedWriter java.io.BufferedWriter@5bdddbab>], :out [#<PrintStream java.io.PrintStream@4280e6ab> #<BufferedWriter java.io.BufferedWriter@1ca806a9>]}, :exit-code 126}
at clojure.core$ex_info.invoke(core.clj:4403)
at drake.shell$shell.doInvoke(shell.clj:143)
at clojure.lang.RestFn.applyTo(RestFn.java:137)
at clojure.core$apply.invoke(core.clj:624)
at drake.protocol$run_interpreter.invoke(protocol.clj:86)
at drake.protocol_interpreters$register_interpreter_BANG_$reify__4637.run(protocol_interpreters.clj:13)
at drake.core$run_step.invoke(core.clj:367)
at drake.core$attempt_run_step.invoke(core.clj:479)
at drake.core$function_for_step$fn__5045.invoke(core.clj:502)
at drake.core$trigger_futures_helper$fn__5056.invoke(core.clj:540)
at clojure.core$binding_conveyor_fn$fn__4145.invoke(core.clj:1910)
at clojure.lang.AFn.call(AFn.java:18)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)

Aaron Crow

unread,
Mar 17, 2016, 9:06:12 AM3/17/16
to P Jakobsen, drake-workflow
Hi P Jakobsen, yes, this wouldn't be too hard to prettify. Are you interested in submitting a PR?

--
You received this message because you are subscribed to the Google Groups "drake-workflow" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drake-workflo...@googlegroups.com.
Visit this group at https://groups.google.com/group/drake-workflow.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages