1
0
Fork 0
arangodb/js/server/modules/@arangodb/foxx
Alan Plum 0df237393c Better Foxx errors (3.3) (#6269)
* 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:32:31 +02:00
..
legacy
queues Fix Foxx queues (3.3) (#5353) 2018-05-16 15:28:25 +02:00
router
sessions
auth.js
context.js
graphql.js
index.js
manager.js Better Foxx errors (3.3) (#6269) 2018-08-28 14:32:31 +02:00
manifest.js Ignore manifest field (#5158) 2018-04-20 12:54:40 +02:00
mocha.js
oauth1.js
oauth2.js
routing.js
service.js [3.3] Fix race condition between foxx install and selfHeal (#5306) 2018-05-11 12:28:07 +02:00
swagger.js
test-utils.js
types.js Bug-fix Foxx empty json request body (3.3) (#5305) 2018-05-16 15:30:21 +02:00