Closed trentm closed 7 years ago
I took a quick look at this. Theoretically this would be easy, since VError is designed exactly to be able to wrap lower-level with an error providing more detail. I ran into a few problems:
mfind: "/asdf":
(i.e., no explanation of the actual error at all). That also suggests that if this weren't a VError (because it was some other code path), we'd have gotten no error message at all.Besides that, the error printing code is command-specific, at least for mfind. Overall, It looks like some cleanup will be needed to make this work.
The errors-having-no-messages issue is #198, and I do believe this Error is constructed by node-restify. The server is returning an error with code ResourceNotFound, but the error reported is a NotFoundError. I can't find any real references to that anywhere in the client (including node modules), so I think it's constructed from the HTTP status line, which is "404 Not Found".
Released in 4.2.0
would be very helpful if the error included the dir that wasn't found.