From e02423365c5452cde1d5148a6dfb2d22d7cf5390 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Thu, 23 Mar 2017 12:59:41 +0100 Subject: [PATCH] SL::X::DBError Serialisierung sollte auch die msg ausgeben --- SL/X.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SL/X.pm b/SL/X.pm index 6da12dcfd..4ecfc7dfa 100644 --- a/SL/X.pm +++ b/SL/X.pm @@ -5,7 +5,7 @@ use strict; use Exception::Lite qw(declareExceptionClass); declareExceptionClass('SL::X::FormError'); -declareExceptionClass('SL::X::DBError', [ '%s', qw(error) ]); +declareExceptionClass('SL::X::DBError', [ '%s %s', qw(error msg) ]); declareExceptionClass('SL::X::DBHookError', 'SL::X::DBError', [ '%s hook \'%s\' for object type \'%s\' failed', qw(when hook object_type object) ]); declareExceptionClass('SL::X::DBRoseError', 'SL::X::DBError', [ '\'%s\' in object of type \'%s\' occured', qw(error class) ]); declareExceptionClass('SL::X::DBUtilsError', 'SL::X::DBError', [ '%s: %s', qw(msg error) ]); -- 2.20.1