Skip to content

Commit 7e7fe9a

Browse files
committed
Don't use ...dbh->errstr in error message
The error might not be due to DB error, and anyhow, the DB error has already been displayed when it first occurred within $SubAttachment->Create(...).
1 parent 365da5b commit 7e7fe9a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/RT/Attachment.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ sub Create {
190190
Attachment => $part,
191191
);
192192
unless ($id) {
193-
$RT::Logger->crit("Attachment insert failed: ". $RT::Handle->dbh->errstr);
193+
$RT::Logger->crit("Attachment subpart insert failed.");
194194
return ($id);
195195
}
196196
}

0 commit comments

Comments
 (0)