fix parameter for OCSExcpetion

Signed-off-by: blizzz <blizzz@arthur-schiwon.de>

Co-Authored-By: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
blizzz 2019-08-29 12:42:37 +02:00 committed by Arthur Schiwon
parent ce4f3598ff
commit dcfe4ab2cc
No known key found for this signature in database
GPG key ID: 7424F1874854DF23

View file

@ -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);
}
}
}