mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* eval.c (rb_longjmp): reset raised flag before fatal error.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24401 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
d857a1b0d7
commit
0a2b36a99c
3 changed files with 10 additions and 3 deletions
|
@ -87,10 +87,12 @@ error_print(void)
|
|||
if (NIL_P(errat)) {
|
||||
const char *file = rb_sourcefile();
|
||||
int line = rb_sourceline();
|
||||
if (file)
|
||||
warn_printf("%s:%d", file, line);
|
||||
else
|
||||
if (!file)
|
||||
warn_printf("%d", line);
|
||||
else if (!line)
|
||||
warn_printf("%s", file, line);
|
||||
else
|
||||
warn_printf("%s:%d", file, line);
|
||||
}
|
||||
else if (RARRAY_LEN(errat) == 0) {
|
||||
error_pos();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue