diff options
Diffstat (limited to 'src/library_fs.js')
-rw-r--r-- | src/library_fs.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/library_fs.js b/src/library_fs.js index dc5c20f8..8f68b395 100644 --- a/src/library_fs.js +++ b/src/library_fs.js @@ -37,6 +37,7 @@ mergeInto(LibraryManager.library, { } } this.message = ERRNO_MESSAGES[errno]; + this.stack = stackTrace(); }; ErrnoError.prototype = new Error(); ErrnoError.prototype.constructor = ErrnoError; @@ -44,7 +45,7 @@ mergeInto(LibraryManager.library, { }()), handleFSError: function(e) { - if (!(e instanceof FS.ErrnoError)) throw e + ' : ' + new Error().stack; + if (!(e instanceof FS.ErrnoError)) throw e + ' : ' + stackTrace(); return ___setErrNo(e.errno); }, |