rethinkdbdash icon indicating copy to clipboard operation
rethinkdbdash copied to clipboard

Truncate really long backtraces

Open marshall007 opened this issue 10 years ago • 0 comments

For example, when you're inserting a large number of docs with table.insert(docs, { bad_optarg: true }) the backtrace will include pretty-printed JSON of all the documents. This is especially problematic in cases where the error occurs early in the query. It would be much more useful if the object literals were omitted:

RqlCompileError: Unrecognized optional argument `bad_optarg` in:
r.db('test').table('test').insert([ ... ], {bad_optarg: true})
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

marshall007 avatar Jun 18 '15 22:06 marshall007