[lang/Backtrace] line

11 views
Skip to first unread message

Hans Nowak

unread,
Apr 3, 2015, 12:05:01 AM4/3/15
to ooc-...@googlegroups.com
Hi,

I noticed that when an exception is raised but caught, a message is still displayed. For example:


import structs/ArrayList

try {
    stuff
:= ArrayList<String> new()
    stuff first
() println()  // fails
} catch (e: Exception) {
   
"No!" println()
}


This will print:

[lang/Backtrace] Falling back on execinfo.. (build extension if you want fancy backtraces)
No!

Is this intentional? Why is the line with [lang/Backtrace] still displayed even if the exception is caught, and is there a way to suppress this?

Thanks,

--Hans


House Zet

unread,
Apr 3, 2015, 8:33:55 AM4/3/15
to ooc-...@googlegroups.com
The message "Falling back.." will be shown when backtrace is returned.
You can try deleting
 
(line 55, line 61) stderr write
in backtrace: func
in rock/sdk/lang/Backtrace.ooc
Reply all
Reply to author
Forward
0 new messages