anoia.system print command if it failed
This commit is contained in:
parent
92e107d77c
commit
b3e505abf4
1 changed files with 4 additions and 1 deletions
|
@ -14,7 +14,10 @@
|
|||
f (do (f:close) true)
|
||||
_ false))
|
||||
|
||||
(fn system [s] (assert (os.execute s)))
|
||||
(fn system [s]
|
||||
(match (os.execute s)
|
||||
res res
|
||||
(nil err) (error (.. "Error executing \"" s "\" (" err ")"))))
|
||||
|
||||
(fn hash [str]
|
||||
(accumulate [h 5381
|
||||
|
|
Loading…
Reference in a new issue