1
0
Fork 0
arangodb/js/server/modules/@arangodb/foxx
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
..
legacy Feature/misc spelling corrections (#5164) 2018-07-13 13:06:20 +02:00
queues Fix Foxx queues (#5352) 2018-05-16 16:54:03 +02:00
router Add authorizedflag fixing cluster internal foxx requests 2017-05-17 18:14:11 +02:00
sessions JWT uses seconds 2017-02-14 19:20:41 +01:00
auth.js Add pbkdf2 to Foxx auth module (#5667) 2018-07-27 11:34:52 +02:00
context.js Expose static req.reverse as module.context.reverse 2016-10-31 17:38:11 +01:00
graphql.js fixed variables parsing in GraphQL 2017-03-05 23:31:38 +01:00
index.js Reformat code 2016-06-30 16:57:17 +02:00
manager.js Better foxx errors (#6264) 2018-08-28 14:36:33 +02:00
manifest.js Allow specifying Foxx manifest.json value (#5157) 2018-04-20 12:55:18 +02:00
mocha.js Implement tap/xunit reporters in Foxx 2017-03-15 20:09:31 +01:00
oauth1.js Document OAuth1 2016-12-09 15:28:36 +01:00
oauth2.js Implement OAuth 1.0a 2016-12-06 18:30:11 +01:00
routing.js Fix issue 2684: Legacy service UI not working (#2685) 2017-06-28 12:09:15 +02:00
service.js Fix race condition between foxx install and selfHeal (#5273) 2018-05-11 12:27:56 +02:00
swagger.js Fix Windows file path resolution 2016-11-22 14:02:01 +01:00
test-utils.js Reformat code 2016-06-30 16:57:17 +02:00
types.js Bug-fix Foxx empty json request body (#5304) 2018-05-16 16:54:38 +02:00