]> 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:47:39 +0000 (09:47 -0500)
Also improve the message style a bit while we're here.

src/bin/pg_dump/pg_dump.c

index 4d22802912b4813207dcf95f5174fa144c30aad7..9afacdb90020837fe5183e1049fc081044ca6153 100644 (file)
@@ -11489,7 +11489,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);
        }
 
@@ -11599,14 +11599,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);
        }