forked from DGNum/liminix
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)
|
f (do (f:close) true)
|
||||||
_ false))
|
_ 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]
|
(fn hash [str]
|
||||||
(accumulate [h 5381
|
(accumulate [h 5381
|
||||||
|
|
Loading…
Reference in a new issue