Open emeryberger opened 8 years ago
A couple of issues here.
-h
option to get a list of valid options.I've fixed the first 3 issues in 81a04c692 for ls
, but this needs to be updated & standardized for all the commands.
Going to leave this open as a tracking issue until all commands are fixed.
Do the error objects not have a toString()
? (And whose error objects are they?)
(BrowserFS error objects have toString()
defined to return error.message
)
@jvilk they start as BrowserFS errors, but when they are transferred to the Worker the prototype is stripped thanks to the structured cloning algorithm :\
Right before postMessage
to worker:
After worker gets the message:
I guess I should detect if we've received something like an ApiError
and replace the received object with a new ApiError