Skip to content
This repository
Browse code

[enhance] runtime: Print backtrace (if found one) on failure

  • Loading branch information...
commit ad16c1fd1668a63914202370d2dd66524b08417d 1 parent a31d080
Quentin Bourgerie BourgerieQuentin authored

Showing 1 changed file with 3 additions and 1 deletion. Show diff stats Hide diff stats

  1. +3 1 lib/plugins/opabsl/jsbsl/bslPervasives.js
4 lib/plugins/opabsl/jsbsl/bslPervasives.js
@@ -233,7 +233,9 @@ var field_position = static_field_of_name("position");
233 233 * @opacapi
234 234 */
235 235 function fail_cps(message, position, k) {
236   - console.error(""+position+"\nfail: "+message);
  236 + var trace = get_cps_trace(k);
  237 + if(trace!="") trace = "\n*** Stack trace:\n" + trace;
  238 + console.error(""+position+"\nfail: "+message+trace);
237 239 var r = empty_constructor();
238 240 r = add_field(r, field_fail, message);
239 241 r = add_field(r, field_position, position);

0 comments on commit ad16c1f

Please sign in to comment.
Something went wrong with that request. Please try again.