mirror of
https://github.com/janet-lang/janet
synced 2024-12-24 23:40:27 +00:00
Update rmrf again to be more strict and failure early
This commit is contained in:
parent
074ae4fc0d
commit
6968275ddf
@ -4040,8 +4040,9 @@
|
|||||||
(rmrf (string x s y)))
|
(rmrf (string x s y)))
|
||||||
(try
|
(try
|
||||||
(os/rmdir x)
|
(os/rmdir x)
|
||||||
([e f] (debug/stacktrace f e)
|
([e f]
|
||||||
(each y (os/dir x) (eprint " - " y)))))
|
(each y (os/dir x) (eprint " - " y))
|
||||||
|
(propagate e f))))
|
||||||
(os/rm x))
|
(os/rm x))
|
||||||
nil)
|
nil)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user