Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit ad16c1fd1668a63914202370d2dd66524b08417d 1 parent a31d080
Quentin Bourgerie BourgerieQuentin authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/plugins/opabsl/jsbsl/bslPervasives.js
4 lib/plugins/opabsl/jsbsl/bslPervasives.js
View
@@ -233,7 +233,9 @@ var field_position = static_field_of_name("position");
* @opacapi
*/
function fail_cps(message, position, k) {
- console.error(""+position+"\nfail: "+message);
+ var trace = get_cps_trace(k);
+ if(trace!="") trace = "\n*** Stack trace:\n" + trace;
+ console.error(""+position+"\nfail: "+message+trace);
var r = empty_constructor();
r = add_field(r, field_fail, message);
r = add_field(r, field_position, position);
Please sign in to comment.
Something went wrong with that request. Please try again.