aboutsummaryrefslogtreecommitdiff
path: root/src/tutorial/beard.c
diff options
context:
space:
mode:
authorNeil Conway <neilc@samurai.com>2006-03-01 06:30:32 +0000
committerNeil Conway <neilc@samurai.com>2006-03-01 06:30:32 +0000
commit8e5a10d46c38976e40504456a5978caa53b77b3c (patch)
treeb94a9b7673f6c919ebacc3546f72032b8eb05657 /src/tutorial/beard.c
parent87fa10a42613ee1ca9cc4bb22eb163f8e179b3f8 (diff)
downloadpostgresql-8e5a10d46c38976e40504456a5978caa53b77b3c.tar.gz
postgresql-8e5a10d46c38976e40504456a5978caa53b77b3c.zip
This patch makes the error message strings throughout the backend
more compliant with the error message style guide. In particular, errdetail should begin with a capital letter and end with a period, whereas errmsg should not. I also fixed a few related issues in passing, such as fixing the repeated misspelling of "lexeme" in contrib/tsearch2 (per Tom's suggestion).
Diffstat (limited to 'src/tutorial/beard.c')
-rw-r--r--src/tutorial/beard.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/tutorial/beard.c b/src/tutorial/beard.c
index f31a1197709..9048b2f77b1 100644
--- a/src/tutorial/beard.c
+++ b/src/tutorial/beard.c
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/tutorial/beard.c,v 1.13 2005/10/15 02:49:52 momjian Exp $
+ * $PostgreSQL: pgsql/src/tutorial/beard.c,v 1.14 2006/03/01 06:30:32 neilc Exp $
*
*-------------------------------------------------------------------------
*/
@@ -38,10 +38,10 @@ beard(Oid picture)
ObjectIdGetDatum(picture),
Int32GetDatum(INV_READ)));
if (pic_fd < 0)
- elog(ERROR, "Cannot access picture large object");
+ elog(ERROR, "could not access picture large object");
if (lo_read(pic_fd, (char *) &ihdr, sizeof(ihdr)) != sizeof(ihdr))
- elog(ERROR, "Picture large object corrupted");
+ elog(ERROR, "picture large object corrupted");
beardOffset = (ihdr.size / 3) * 2;
@@ -51,19 +51,19 @@ beard(Oid picture)
beard = DatumGetObjectId(DirectFunctionCall1(lo_creat,
Int32GetDatum(INV_MD)));
if (beard == InvalidOid)
- elog(ERROR, "Cannot create new large object");
+ elog(ERROR, "could not create new large object");
beard_fd = DatumGetInt32(DirectFunctionCall2(lo_open,
ObjectIdGetDatum(beard),
Int32GetDatum(INV_WRITE)));
if (beard_fd < 0)
- elog(ERROR, "Cannot access beard large object");
+ elog(ERROR, "could not access beard large object");
if (DatumGetInt32(DirectFunctionCall3(lo_lseek,
Int32GetDatum(pic_fd),
Int32GetDatum(beardOffset),
Int32GetDatum(SEEK_SET))) < 0)
- elog(ERROR, "Cannot seek in picture large object");
+ elog(ERROR, "could not seek in picture large object");
while ((cc = lo_read(pic_fd, buf, BUFSIZE)) > 0)
{