On Wed, 2004-08-25 at 13:11, Tom Lane wrote:
> It'd be even better if it followed the message style guidelines...

Indeed.
I was unaware of the guidelines, but remedied that after a quick google.
http://www.postgresql.org/docs/current/static/error-style-guide.html

I assume the problem was only with the lack of capitalization and ending
punctuation(as hints and details are specified to have).
-- 
Regards,
        James William Pye
Index: aclchk.c
===================================================================
RCS file: /projects/cvsroot/pgsql-server/src/backend/catalog/aclchk.c,v
retrieving revision 1.104
diff -u -r1.104 aclchk.c
--- aclchk.c	18 Jun 2004 06:13:19 -0000	1.104
+++ aclchk.c	25 Aug 2004 22:12:14 -0000
@@ -760,7 +760,8 @@
 		if (!pg_language_tuple->lanpltrusted)
 			ereport(ERROR,
 					(errcode(ERRCODE_WRONG_OBJECT_TYPE),
-					 errmsg("language \"%s\" is not trusted", langname)));
+					 errmsg("language \"%s\" is not trusted", langname),
+					 errhint("Only superusers may use untrusted languages.")));
 
 		/*
 		 * Note: for now, languages are treated as owned by the bootstrap

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to