anoia: Fix crash if a watched output directory does not exist
This commit is contained in:
@@ -111,10 +111,10 @@
|
||||
)
|
||||
|
||||
(fn dig [tree path]
|
||||
(match path
|
||||
[el & more] (dig (. tree el) more)
|
||||
[el] (. tree el)
|
||||
[] tree))
|
||||
(if tree (match path
|
||||
[el & more] (dig (. tree el) more)
|
||||
[el] (. tree el)
|
||||
[] tree) nil))
|
||||
|
||||
(fn %% [fmt ...] (string.format fmt ...))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user