- Capture stack traces on server (Meteor.Error objects are only created on the client, not thrown)
- Set a message
- Improve inheritence pattern
Before: (note that the stack trace shows the line in which Meteor.Error is defined, not where it got thrown)
===
- exception - message
Error
at app/packages/livedata/livedata_common.js:143:26
at /private/var/folders/tp/sc9b5w7n2qndz3chpmktwy_w0000gn/T/meteor-test-runikymph/.meteor/local/build/server/server.js:282:7
at Array.forEach (native)
at Function._.each._.forEach (/Users/avital/meteor/dev_bundle/lib/node_modules/underscore/underscore.js:79:11)
at run (/private/var/folders/tp/sc9b5w7n2qndz3chpmktwy_w0000gn/T/meteor-test-runikymph/.meteor/local/build/server/server.js:227:7)
After:
===
- exception - message User validation failed [403]
Error: User validation failed [403]
at app/packages/accounts-base/accounts_server.js:164:13
at Array.forEach (native)
at Function._.each._.forEach (app/packages/underscore/underscore.js:79:11)
at Object.Accounts.insertUserDoc (app/packages/accounts-base/accounts_server.js:162:5)
at Object.Accounts.updateOrCreateUserFromExternalService (app/packages/accounts-base/accounts_server.js:264:21)
at null.func (app/packages/accounts-base/accounts_tests.js:18:28)
at app/packages/tinytest/tinytest.js:299:16
at app/packages/meteor/timers.js:54:36
at _.extend.withValue (app/packages/meteor/dynamics_nodejs.js:31:17)
at f (app/packages/meteor/timers.js:12:51)
Previously to fixing #927, if you had a 'node_modules' directory
anywhere up the directory tree from your app and you had a package
in your app using NPM, all calls to 'npm' ran against the 'node_modules'
directory it found, so neither 'node_modules' nor 'npm-shrinkwrap.json'
would be created within your package's .npm directory.
The fix to #927 ensured that 'node_modules' was first created within
'.npm' but people who had already run 0.6.0 were still in a corrupted state.
Found because I happened to be looking at the linker output and
thinking, "um, why is `type` being declared as a package-scope
variable?" :-)
Added checkUrlPrefix unit test.