]> granicus.if.org Git - pgbouncer/commitdiff
Make error messages more precise
authorPeter Eisentraut <peter@eisentraut.org>
Mon, 24 Jun 2019 14:25:25 +0000 (16:25 +0200)
committerPeter Eisentraut <peter@eisentraut.org>
Mon, 24 Jun 2019 14:25:25 +0000 (16:25 +0200)
src/loader.c

index 13323f6718754559a61b99ec63adb58c55333e0c..016ce9fd933dbc35959f5ce3cb5a793f74330004 100644 (file)
@@ -589,7 +589,7 @@ bool load_auth_file(const char *fn)
                        break;
                }
                if (p - user >= MAX_USERNAME) {
-                       log_error("username too long");
+                       log_error("username too long in auth file");
                        break;
                }
                *p++ = 0; /* tag username end */
@@ -607,7 +607,7 @@ bool load_auth_file(const char *fn)
                        break;
                }
                if (p - password >= MAX_PASSWORD) {
-                       log_error("too long password");
+                       log_error("password too long in auth file");
                        break;
                }
                *p++ = 0; /* tag password end */