1
0
mirror of https://github.com/janet-lang/janet synced 2024-12-25 07:50:27 +00:00

Update rmrf again to be more strict and failure early

This commit is contained in:
Calvin Rose 2024-05-26 09:39:17 -05:00
parent 074ae4fc0d
commit 6968275ddf

View File

@ -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)