diff options
author | fche <fche> | 2005-06-05 16:41:48 +0000 |
---|---|---|
committer | fche <fche> | 2005-06-05 16:41:48 +0000 |
commit | 22f4623195facb4cbc1b50c45c0bd689f6958a9d (patch) | |
tree | 1ee468efab2a3f1f1a18cfb02c0bd5c31e541c57 /translate.cxx | |
parent | f3c26ea55e2f2c1d222312bf75035359c439ed21 (diff) | |
download | systemtap-steved-22f4623195facb4cbc1b50c45c0bd689f6958a9d.tar.gz systemtap-steved-22f4623195facb4cbc1b50c45c0bd689f6958a9d.tar.xz systemtap-steved-22f4623195facb4cbc1b50c45c0bd689f6958a9d.zip |
next/return symmetry improvement
Diffstat (limited to 'translate.cxx')
-rw-r--r-- | translate.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/translate.cxx b/translate.cxx index df20389f..1c9724d9 100644 --- a/translate.cxx +++ b/translate.cxx @@ -698,7 +698,7 @@ void c_unparser::visit_return_statement (return_statement* s) { if (current_function == 0) - throw semantic_error ("cannot return from non-function", s->tok); + throw semantic_error ("cannot 'return' from probe", s->tok); if (s->value->type != current_function->type) throw semantic_error ("return type mismatch", current_function->tok, @@ -713,7 +713,7 @@ void c_unparser::visit_next_statement (next_statement* s) { if (current_probe == 0) - throw semantic_error ("cannot 'next' from non-probe", s->tok); + throw semantic_error ("cannot 'next' from function", s->tok); o->newline() << "goto out;"; } |