Skip to content

Commit c1b5bbd

Browse files
blizzzjuliusknorr
andauthored
fixup! more OCSExcpetion instantiation fixes
Co-Authored-By: Julius Härtl <jus@bitgrid.net>
1 parent a465cb5 commit c1b5bbd

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

apps/workflowengine/lib/Controller/AWorkflowController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ public function update(
139139
} catch (\DomainException $e) {
140140
throw new OCSForbiddenException($e->getMessage(), $e);
141141
} catch(DBALException $e) {
142-
throw new OCSException('An internal error occurred', $e);
142+
throw new OCSException('An internal error occurred', $e->getCode(), $e);
143143
}
144144
}
145145

@@ -157,7 +157,7 @@ public function destroy(int $id): DataResponse {
157157
} catch (\DomainException $e) {
158158
throw new OCSForbiddenException($e->getMessage(), $e);
159159
} catch(DBALException $e) {
160-
throw new OCSException('An internal error occurred', $e);
160+
throw new OCSException('An internal error occurred', $e->getCode(), $e);
161161
}
162162
}
163163
}

0 commit comments

Comments
 (0)