Add missing newline to error messages
authorPeter Eisentraut <[email protected]>
Mon, 6 Feb 2017 14:47:39 +0000 (09:47 -0500)
committerPeter Eisentraut <[email protected]>
Mon, 6 Feb 2017 14:48:34 +0000 (09:48 -0500)
Also improve the message style a bit while we're here.

src/bin/pg_dump/pg_dump.c

index dd5e547483e9a1201ce8cb04809dda9c0306cfed..180f51c76bce10c9f712500feb43d2f5ce37edeb 100644 (file)
@@ -10850,7 +10850,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);
        }
 
@@ -10955,14 +10955,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);
        }