1
0
Fork 0
arangodb/js/common/modules/@arangodb
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
..
aql Bug fix/fixes 2508 (#6254) 2018-08-27 21:36:39 +02:00
examples Doc - new page 'Remove vertex' in AQL examples (#5818) 2018-07-10 19:07:30 +02:00
foxx Better foxx errors (#6264) 2018-08-28 14:36:33 +02:00
graph Improve pseudo RNG. 2016-09-29 16:39:14 +02:00
graph-examples Update demo graphs (UI + documentation) (#5535) 2018-06-27 14:16:44 +02:00
arango-collection-common.js S2 based Geo-Spatial index (#5249) 2018-05-02 23:54:41 +02:00
arango-cursor.js Bug fix/fixes 2508 (#6254) 2018-08-27 21:36:39 +02:00
arango-statement-common.js Reformat code 2016-06-30 16:57:17 +02:00
common.js Add query, aql.literal (#5184) 2018-05-03 14:18:20 +02:00
crypto.js Add uuidv4 & genRandomBytes methods (#5732) 2018-08-17 11:04:43 +02:00
deprecated.js Reformat code 2016-06-30 16:57:17 +02:00
extend.js
general-graph-common.js Gharial rewrite in C++ (#5631) 2018-08-09 09:30:04 +02:00
heap.js Reformat code 2016-06-30 16:57:17 +02:00
is.js Reformat code 2016-06-30 16:57:17 +02:00
mocha-runner.js Whitespace 2017-03-16 15:45:45 +01:00
mocha.js Implement tap/xunit reporters in Foxx 2017-03-15 20:09:31 +01:00
replication-common.js Replication cleanup (#5105) 2018-04-17 08:17:42 +02:00
request.js Supervision Job for Active Failover (#5066) 2018-04-23 12:49:41 +02:00
simple-query-common.js S2 based Geo-Spatial index (#5249) 2018-05-02 23:54:41 +02:00
test-helper.js Reformat code 2016-06-30 16:57:17 +02:00
testrunner.js add ability to filter jsunity testsuites by testcase (#5807) 2018-07-12 13:35:29 +02:00
util.js Better foxx errors (#6264) 2018-08-28 14:36:33 +02:00