haarg/wgdev

wgd ls swallows errors

Opened this issue · 1 comments

wgd ls wraps $wgd->asset->find($parent) in an eval and then reports "asset not found" regardless of the type of exception. This swallows errors such as invalid json in the site.conf

I've fixed one part of this, so now WGDev will refuse to use invalid config files. The handling of errors in the ls command still needs to be improved though.