plasma-umass / browsix

Browsix is a Unix-like operating system for the browser.
Other
3.15k stars 181 forks source link

create useful errors in browser-node for FS #4

Closed bpowers closed 8 years ago

bpowers commented 8 years ago

as @jvilk pointed out in #1, jvilk/BrowserFS provides ApiErrors to callbacks, which have a pretty toString method. We lose this when we send these errors from the kernel to the worker (due to structured cloning "The prototype chain does not get walked and duplicated").

We should provide full ApiErrors to users of the fs module in browser-node. BrowserFS's WorkerFS does this - we should probably just use that same mechanism

bpowers commented 8 years ago

fixed in d286d2b762a35a