Commit 149b8590 authored by jocuri%softhome.net's avatar jocuri%softhome.net

Patch for bug 256592: Cut down the DBD error string to a reasonable size; patch…

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.
parent ae71b4ae
......@@ -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
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment