diff options
author | blizzz <blizzz@arthur-schiwon.de> | 2019-08-29 12:42:37 +0200 |
---|---|---|
committer | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2019-09-09 22:56:04 +0200 |
commit | dcfe4ab2ccd16a084b2e61093ad4c1314b6fd263 (patch) | |
tree | 8db97386ca65a5c471f8a0f73ff9553f46877f05 /apps | |
parent | ce4f3598ff4b3787863c024230ea893b7f8a4c86 (diff) | |
download | nextcloud-server-dcfe4ab2ccd16a084b2e61093ad4c1314b6fd263.tar.gz nextcloud-server-dcfe4ab2ccd16a084b2e61093ad4c1314b6fd263.zip |
fix parameter for OCSExcpetion
Signed-off-by: blizzz <blizzz@arthur-schiwon.de>
Co-Authored-By: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/workflowengine/lib/Controller/AWorkflowController.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/workflowengine/lib/Controller/AWorkflowController.php b/apps/workflowengine/lib/Controller/AWorkflowController.php index 2e3186e380d..8d51600c7b2 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); } } } |