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:
parent
ce4f3598ff
commit
dcfe4ab2cc
1 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue