Skip to content

Commit c92e270

Browse files
committed
Message style tuning
1 parent 2fb605e commit c92e270

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

src/pl/plperl/expected/plperl_init.out

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ SHOW plperl.on_plperl_init;
1010

1111
DO $$ warn 42 $$ language plperl;
1212
ERROR: 'eval "string"' trapped by operation mask at line 2.
13-
CONTEXT: While executing plperl.on_plperl_init.
13+
CONTEXT: while executing plperl.on_plperl_init
1414
PL/Perl anonymous code block

src/pl/plperl/plperl.c

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**********************************************************************
22
* plperl.c - perl as a procedural language for PostgreSQL
33
*
4-
* $PostgreSQL: pgsql/src/pl/plperl/plperl.c,v 1.171 2010/03/09 22:34:38 tgl Exp $
4+
* $PostgreSQL: pgsql/src/pl/plperl/plperl.c,v 1.172 2010/03/17 21:31:17 petere Exp $
55
*
66
**********************************************************************/
77

@@ -246,7 +246,7 @@ _PG_init(void)
246246
NULL, NULL);
247247

248248
DefineCustomStringVariable("plperl.on_init",
249-
gettext_noop("Perl initialization code to execute when a perl interpreter is initialized."),
249+
gettext_noop("Perl initialization code to execute when a Perl interpreter is initialized."),
250250
NULL,
251251
&plperl_on_init,
252252
NULL,
@@ -422,7 +422,7 @@ select_perl_context(bool trusted)
422422
if (SvTRUE(ERRSV))
423423
ereport(ERROR,
424424
(errmsg("%s", strip_trailing_ws(SvPV_nolen(ERRSV))),
425-
errdetail("While executing PostgreSQL::InServer::SPI::bootstrap.")));
425+
errcontext("while executing PostgreSQL::InServer::SPI::bootstrap")));
426426
}
427427

428428
/*
@@ -560,12 +560,12 @@ plperl_init_interp(void)
560560
nargs, embedding, NULL) != 0)
561561
ereport(ERROR,
562562
(errmsg("%s", strip_trailing_ws(SvPV_nolen(ERRSV))),
563-
errcontext("While parsing perl initialization.")));
563+
errcontext("while parsing Perl initialization")));
564564

565565
if (perl_run(plperl) != 0)
566566
ereport(ERROR,
567567
(errmsg("%s", strip_trailing_ws(SvPV_nolen(ERRSV))),
568-
errcontext("While running perl initialization.")));
568+
errcontext("while running Perl initialization")));
569569

570570
#ifdef WIN32
571571

@@ -703,15 +703,15 @@ plperl_trusted_init(void)
703703
if (SvTRUE(ERRSV))
704704
ereport(ERROR,
705705
(errmsg("%s", strip_trailing_ws(SvPV_nolen(ERRSV))),
706-
errcontext("While executing PLC_SAFE_BAD.")));
706+
errcontext("while executing PLC_SAFE_BAD")));
707707
}
708708
else
709709
{
710710
eval_pv(PLC_SAFE_OK, FALSE);
711711
if (SvTRUE(ERRSV))
712712
ereport(ERROR,
713713
(errmsg("%s", strip_trailing_ws(SvPV_nolen(ERRSV))),
714-
errcontext("While executing PLC_SAFE_OK.")));
714+
errcontext("while executing PLC_SAFE_OK")));
715715

716716
if (GetDatabaseEncoding() == PG_UTF8)
717717
{
@@ -724,7 +724,7 @@ plperl_trusted_init(void)
724724
if (SvTRUE(ERRSV))
725725
ereport(ERROR,
726726
(errmsg("%s", strip_trailing_ws(SvPV_nolen(ERRSV))),
727-
errcontext("While executing utf8fix.")));
727+
errcontext("while executing utf8fix")));
728728
}
729729

730730
/* switch to the safe require opcode */
@@ -744,7 +744,7 @@ plperl_trusted_init(void)
744744
if (SvTRUE(ERRSV))
745745
ereport(ERROR,
746746
(errmsg("%s", strip_trailing_ws(SvPV_nolen(ERRSV))),
747-
errcontext("While executing plperl.on_plperl_init.")));
747+
errcontext("while executing plperl.on_plperl_init")));
748748
}
749749

750750
}
@@ -760,7 +760,7 @@ plperl_untrusted_init(void)
760760
if (SvTRUE(ERRSV))
761761
ereport(ERROR,
762762
(errmsg("%s", strip_trailing_ws(SvPV_nolen(ERRSV))),
763-
errcontext("While executing plperl.on_plperlu_init.")));
763+
errcontext("while executing plperl.on_plperlu_init")));
764764
}
765765
}
766766

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy