diff options
author | jocuri%softhome.net <> | 2004-12-07 02:16:33 +0100 |
---|---|---|
committer | jocuri%softhome.net <> | 2004-12-07 02:16:33 +0100 |
commit | 149b85901ce84dc628c5da675268aa1017d6ca8e (patch) | |
tree | 21106ee649d236abe16e0a502212ba7512fe1f7a | |
parent | ae71b4aeab2709d59f11bbb99a6db00d46acca83 (diff) | |
download | bugzilla-149b85901ce84dc628c5da675268aa1017d6ca8e.tar.gz bugzilla-149b85901ce84dc628c5da675268aa1017d6ca8e.tar.xz |
Patch for bug 256592: Cut down the DBD error string to a reasonable size; patch by Byron Jones (glob) <bugzilla@glob.com.au>, r=vladd, a=justdave.
-rw-r--r-- | Bugzilla/DB.pm | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Bugzilla/DB.pm b/Bugzilla/DB.pm index ca2ee29fa..dcd419915 100644 --- a/Bugzilla/DB.pm +++ b/Bugzilla/DB.pm @@ -166,6 +166,9 @@ sub _connect { sub _handle_error { require Carp; + # Cut down the error string to a reasonable size + $_[0] = substr($_[0], 0, 2000) . ' ... ' . substr($_[0], -2000) + if length($_[0]) > 4000; $_[0] = Carp::longmess($_[0]); return 0; # Now let DBI handle raising the error } |