From dcfe4ab2ccd16a084b2e61093ad4c1314b6fd263 Mon Sep 17 00:00:00 2001 From: blizzz Date: Thu, 29 Aug 2019 12:42:37 +0200 Subject: [PATCH] fix parameter for OCSExcpetion MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: blizzz Co-Authored-By: Julius Härtl --- apps/workflowengine/lib/Controller/AWorkflowController.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/workflowengine/lib/Controller/AWorkflowController.php b/apps/workflowengine/lib/Controller/AWorkflowController.php index 2e3186e380..8d51600c7b 100644 --- a/apps/workflowengine/lib/Controller/AWorkflowController.php +++ b/apps/workflowengine/lib/Controller/AWorkflowController.php @@ -112,7 +112,7 @@ abstract class AWorkflowController extends OCSController { } catch (\DomainException $e) { throw new OCSForbiddenException($e->getMessage(), $e); } catch(DBALException $e) { - throw new OCSException('An internal error occurred', $e); + throw new OCSException('An internal error occurred', $e->getCode(), $e); } } @@ -139,7 +139,7 @@ abstract class AWorkflowController extends OCSController { } catch (\DomainException $e) { throw new OCSForbiddenException($e->getMessage(), $e); } catch(DBALException $e) { - throw new OCSException('An internal error occurred', $e); + throw new OCSException('An internal error occurred', $e->getCode(), $e); } } @@ -157,7 +157,7 @@ abstract class AWorkflowController extends OCSController { } catch (\DomainException $e) { throw new OCSForbiddenException($e->getMessage(), $e); } catch(DBALException $e) { - throw new OCSException('An internal error occurred', $e); + throw new OCSException('An internal error occurred', $e->getCode(), $e); } } }