1
0
Fork 0
arangodb/js/common/bootstrap/modules
Alan Plum cfa0e0db55 Better foxx errors (#6264)
* Fix codeFrame formatting

Pushing the codeFrame first results in ugly line breaks or extra spaces.

* Include cause in MODULE_FAILURE message

The error is always a wrapper for an underlying cause so it should be easier to determine what caused it.

* Add a codeFrame for failed _install

We normally only want this in dev mode but service CRUD should always provide detailed info.

* Expose codeFrame in Foxx CRUD

The codeFrame can only come from a failed _install, so let's make it visible to Foxx CLI and friends.

* Add codeFrame to runScript

Scripts can also only be executed with access to the Foxx API so we can provide the same info as during CRUD.

* Trim codeFrame fileName to basePath

If we have a basePath, we don't need to expose the full path to the user for the codeFrame to be meaningful.

* Fix getReadableName

Previously 'catch-fire' would become 'Catch  Ire'.

* Add to changelog
2018-08-28 14:36:33 +02:00
..
assert.js Reformat code 2016-06-30 16:57:17 +02:00
buffer.js fix jslint warnings 2018-08-17 11:05:58 +02:00
console.js Better foxx errors (#6264) 2018-08-28 14:36:33 +02:00
events.js Brute force ignore events module in jshint 2015-12-01 20:19:54 +01:00
fs.js Improve Foxx cluster resilience (#2479) 2017-05-16 17:41:29 +02:00
internal.js Bug fix/fiddle version string into test paths (#6266) 2018-08-28 09:27:32 +02:00
path.js Reformat code 2016-06-30 16:57:17 +02:00
process.js Feature/arangodoc (#5476) 2018-06-05 15:38:50 +02:00
vm.js Reformat code 2016-06-30 16:57:17 +02:00