Bugzilla – Attachment 102147 Details for
Bug 22001
Add RaiseError and PrintError flags for all tests
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 22001: Add the DBI error message
Bug-22001-Add-the-DBI-error-message.patch (text/plain), 925 bytes, created by
Jonathan Druart
on 2020-03-31 15:28:20 UTC
(
hide
)
Description:
Bug 22001: Add the DBI error message
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2020-03-31 15:28:20 UTC
Size:
925 bytes
patch
obsolete
>From e3f4a9fd63549027d3c5c0bafbf95a184badca87 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Tue, 31 Mar 2020 17:27:12 +0200 >Subject: [PATCH] Bug 22001: Add the DBI error message > >Using DBIx::Class error handler, we should not hide the error when >encapsulating it >--- > Koha/Object.pm | 1 + > 1 file changed, 1 insertion(+) > >diff --git a/Koha/Object.pm b/Koha/Object.pm >index e56f4b18f4..fde0fa9917 100644 >--- a/Koha/Object.pm >+++ b/Koha/Object.pm >@@ -166,6 +166,7 @@ sub store { > catch { > # Catch problems and raise relevant exceptions > if (ref($_) eq 'DBIx::Class::Exception') { >+ warn $_->{msg}; > if ( $_->{msg} =~ /Cannot add or update a child row: a foreign key constraint fails/ ) { > # FK constraints > # FIXME: MySQL error, if we support more DB engines we should implement this for each >-- >2.20.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 22001
:
83230
|
83231
|
83232
|
98910
|
98911
|
98912
|
99589
|
99590
|
99591
|
101989
|
101990
|
101991
|
102070
|
102140
| 102147 |
102149
|
102150
|
102151
|
102152