Skip to content

Commit 0ef6252

Browse files
committed
test
1 parent d56426c commit 0ef6252

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

v4-cokapi/cokapi.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,14 @@ function exec_cpp_handler(useCPP /* use bind first */, useJSONP /* use bind firs
254254
}
255255

256256

257+
// test
258+
app.get('/test_failure_jsonp', function(req, res) {
259+
var errTrace = {code: '', trace: [{'event': 'uncaught_exception',
260+
'exception_msg': "Unknown error. The server may be OVERLOADED right now; please try again later.\nYour code may also contain UNSUPPORTED FEATURES that the tool cannot handle.\nReport a bug to philip@pgbovine.net by clicking on the 'Generate shortened link'\nbutton at the bottom and including a URL in your email. [#BackendError]"}]};
261+
res.jsonp(errTrace /* return an actual object, not a string */);
262+
});
263+
264+
257265
// https support
258266
var https = require('https');
259267
var fs = require('fs');

0 commit comments

Comments
 (0)