Permalink
Browse files

Don't display internal backtraces by default.

  • Loading branch information...
1 parent 0b4cca8 commit 7e77fb98af999ccfa64581a14474978cd6390adb @simonask committed Feb 22, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 snow/runtime/main.cpp
View
@@ -63,7 +63,7 @@ static void interactive_prompt()
printf("=> %s\n", buffer);
}
catch (snow::ExceptionPtr ex) {
- StringPtr backtrace = exception_get_internal_backtrace(ex, 100);
+ StringPtr backtrace = exception_get_backtrace(ex, 100);
StringPtr source_excerpt = exception_get_source_excerpt(ex);
StringPtr error_message = format_string("ERROR: %@\n\nFile: %@ (line %@, column %@)\n\nSource excerpt:\n%@\nBacktrace:\n%@", ex, exception_get_file(ex), exception_get_line(ex), exception_get_column(ex), source_excerpt, backtrace);
string_puts(error_message);

0 comments on commit 7e77fb9

Please sign in to comment.