diff options
| author | Tom Lane <tgl@sss.pgh.pa.us> | 2015-08-25 14:06:13 -0400 |
|---|---|---|
| committer | Tom Lane <tgl@sss.pgh.pa.us> | 2015-08-25 14:06:13 -0400 |
| commit | 781ed2bfa35f0a8a7ad1029d3a7d7687c73d86a0 (patch) | |
| tree | 2f798786223577e5706b8be5157a684b1ccdea0b /src/pl/plpgsql | |
| parent | 7b5ef8f2d070c075811ec04a0fcb745d67c7fe3f (diff) | |
| download | postgresql-781ed2bfa35f0a8a7ad1029d3a7d7687c73d86a0.tar.gz | |
Further tweak wording of error messages about bad CONTINUE/EXIT statements.
Per discussion, a little more verbosity seems called for.
Diffstat (limited to 'src/pl/plpgsql')
| -rw-r--r-- | src/pl/plpgsql/src/pl_gram.y | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pl/plpgsql/src/pl_gram.y b/src/pl/plpgsql/src/pl_gram.y index a1ae1bbf2c..841a8d6122 100644 --- a/src/pl/plpgsql/src/pl_gram.y +++ b/src/pl/plpgsql/src/pl_gram.y @@ -1676,7 +1676,8 @@ stmt_exit : exit_type opt_label opt_exitcond if (label == NULL) ereport(ERROR, (errcode(ERRCODE_SYNTAX_ERROR), - errmsg("there is no label \"%s\" surrounding this statement", + errmsg("there is no label \"%s\" " + "attached to any block or loop enclosing this statement", $2), parser_errposition(@2))); /* CONTINUE only allows loop labels */ |
