Janey2022

Results 3 comments of Janey2022

With the origin logic, if I run it in the cases that contains several dirs, it will break when found one has no matched file to scan.

It seems not a good approach. But still need to handle the issue when the loop exit in some cases.

> How about throwing an exception in this case? > > That way, we can catch the error with a `try{} catch(){}` Good point, yes, if we use process.exit instead...