]> granicus.if.org Git - postgresql/commitdiff
Add missing newline to error messages
authorPeter Eisentraut <peter_e@gmx.net>
Mon, 6 Feb 2017 14:47:39 +0000 (09:47 -0500)
committerPeter Eisentraut <peter_e@gmx.net>
Mon, 6 Feb 2017 14:48:24 +0000 (09:48 -0500)
Also improve the message style a bit while we're here.

src/bin/pg_dump/pg_dump.c

index 8b2c7b913c54af35146808a7d02dc1f537382c18..ea64c77621cc9a1d9dc52f3fe30ed4e31c87770e 100644 (file)
@@ -11945,7 +11945,7 @@ dumpCast(Archive *fout, CastInfo *cast)
        {
                funcInfo = findFuncByOid(cast->castfunc);
                if (funcInfo == NULL)
-                       exit_horribly(NULL, "unable to find function definition for OID %u",
+                       exit_horribly(NULL, "could not find function definition for function with OID %u\n",
                                                  cast->castfunc);
        }
 
@@ -12055,14 +12055,14 @@ dumpTransform(Archive *fout, TransformInfo *transform)
        {
                fromsqlFuncInfo = findFuncByOid(transform->trffromsql);
                if (fromsqlFuncInfo == NULL)
-                       exit_horribly(NULL, "unable to find function definition for OID %u",
+                       exit_horribly(NULL, "could not find function definition for function with OID %u\n",
                                                  transform->trffromsql);
        }
        if (OidIsValid(transform->trftosql))
        {
                tosqlFuncInfo = findFuncByOid(transform->trftosql);
                if (tosqlFuncInfo == NULL)
-                       exit_horribly(NULL, "unable to find function definition for OID %u",
+                       exit_horribly(NULL, "could not find function definition for function with OID %u\n",
                                                  transform->trftosql);
        }