{"action":"created","issue":{"url":"https://api.github.com/repos/plasma-umass/browsix/issues/4","repository_url":"https://api.github.com/repos/plasma-umass/browsix","labels_url":"https://api.github.com/repos/plasma-umass/browsix/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/plasma-umass/browsix/issues/4/comments","events_url":"https://api.github.com/repos/plasma-umass/browsix/issues/4/events","html_url":"https://github.com/plasma-umass/browsix/issues/4","id":135530651,"number":4,"title":"create useful errors in browser-node for FS","user":{"login":"bpowers","id":854918,"avatar_url":"https://avatars.githubusercontent.com/u/854918?v=3","gravatar_id":"","url":"https://api.github.com/users/bpowers","html_url":"https://github.com/bpowers","followers_url":"https://api.github.com/users/bpowers/followers","following_url":"https://api.github.com/users/bpowers/following{/other_user}","gists_url":"https://api.github.com/users/bpowers/gists{/gist_id}","starred_url":"https://api.github.com/users/bpowers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bpowers/subscriptions","organizations_url":"https://api.github.com/users/bpowers/orgs","repos_url":"https://api.github.com/users/bpowers/repos","events_url":"https://api.github.com/users/bpowers/events{/privacy}","received_events_url":"https://api.github.com/users/bpowers/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-22T20:11:19Z","updated_at":"2016-02-23T22:16:53Z","closed_at":"2016-02-23T22:16:53Z","body":"as @jvilk pointed out in #1, jvilk/BrowserFS provides `ApiError`s 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](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Structured_clone_algorithm) \"The prototype chain does not get walked and duplicated\").\r\n\r\nWe should provide full `ApiError`s to users of the `fs` module in `browser-node`.  BrowserFS's WorkerFS does this - we should probably just use that same mechanism"},"comment":{"url":"https://api.github.com/repos/plasma-umass/browsix/issues/comments/187940638","html_url":"https://github.com/plasma-umass/browsix/issues/4#issuecomment-187940638","issue_url":"https://api.github.com/repos/plasma-umass/browsix/issues/4","id":187940638,"user":{"login":"bpowers","id":854918,"avatar_url":"https://avatars.githubusercontent.com/u/854918?v=3","gravatar_id":"","url":"https://api.github.com/users/bpowers","html_url":"https://github.com/bpowers","followers_url":"https://api.github.com/users/bpowers/followers","following_url":"https://api.github.com/users/bpowers/following{/other_user}","gists_url":"https://api.github.com/users/bpowers/gists{/gist_id}","starred_url":"https://api.github.com/users/bpowers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bpowers/subscriptions","organizations_url":"https://api.github.com/users/bpowers/orgs","repos_url":"https://api.github.com/users/bpowers/repos","events_url":"https://api.github.com/users/bpowers/events{/privacy}","received_events_url":"https://api.github.com/users/bpowers/received_events","type":"User","site_admin":false},"created_at":"2016-02-23T22:16:53Z","updated_at":"2016-02-23T22:16:53Z","body":"fixed in d286d2b762a35a"}}