Skip to content

Commit bcf63a5

Browse files
committed
Message style improvements
1 parent c8e0c32 commit bcf63a5

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

src/backend/utils/adt/arrayfuncs.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4805,7 +4805,7 @@ array_fill_with_lower_bounds(PG_FUNCTION_ARGS)
48054805
if (PG_ARGISNULL(1) || PG_ARGISNULL(2))
48064806
ereport(ERROR,
48074807
(errcode(ERRCODE_NULL_VALUE_NOT_ALLOWED),
4808-
errmsg("dimension array or low bound array cannot be NULL")));
4808+
errmsg("dimension array or low bound array cannot be null")));
48094809

48104810
dims = PG_GETARG_ARRAYTYPE_P(1);
48114811
lbs = PG_GETARG_ARRAYTYPE_P(2);
@@ -4845,7 +4845,7 @@ array_fill(PG_FUNCTION_ARGS)
48454845
if (PG_ARGISNULL(1))
48464846
ereport(ERROR,
48474847
(errcode(ERRCODE_NULL_VALUE_NOT_ALLOWED),
4848-
errmsg("dimension array or low bound array cannot be NULL")));
4848+
errmsg("dimension array or low bound array cannot be null")));
48494849

48504850
dims = PG_GETARG_ARRAYTYPE_P(1);
48514851

src/pl/plpgsql/src/pl_exec.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2060,7 +2060,7 @@ exec_stmt_foreach_a(PLpgSQL_execstate *estate, PLpgSQL_stmt_foreach_a *stmt)
20602060
if (isnull)
20612061
ereport(ERROR,
20622062
(errcode(ERRCODE_NULL_VALUE_NOT_ALLOWED),
2063-
errmsg("FOREACH expression must not be NULL")));
2063+
errmsg("FOREACH expression must not be null")));
20642064

20652065
/* check the type of the expression - must be an array */
20662066
if (!OidIsValid(get_element_type(arrtype)))

src/pl/plpython/plpython.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3937,7 +3937,7 @@ PLy_add_exceptions(PyObject *plpy)
39373937
excmod = PyModule_Create(&PLy_exc_module);
39383938
#endif
39393939
if (PyModule_AddObject(plpy, "spiexceptions", excmod) < 0)
3940-
PLy_elog(ERROR, "failed to add the spiexceptions module");
3940+
PLy_elog(ERROR, "could not add the spiexceptions module");
39413941

39423942
/*
39433943
* XXX it appears that in some circumstances the reference count of the

src/test/regress/expected/arrays.out

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1292,9 +1292,9 @@ select array_fill('juhu'::text, array[3,3]);
12921292

12931293
-- raise exception
12941294
select array_fill(1, null, array[2,2]);
1295-
ERROR: dimension array or low bound array cannot be NULL
1295+
ERROR: dimension array or low bound array cannot be null
12961296
select array_fill(1, array[2,2], null);
1297-
ERROR: dimension array or low bound array cannot be NULL
1297+
ERROR: dimension array or low bound array cannot be null
12981298
select array_fill(1, array[3,3], array[1,1,1]);
12991299
ERROR: wrong number of array subscripts
13001300
DETAIL: Low bound array has different size than dimensions array.

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