Add comments
This commit is contained in:
parent
074b807d8d
commit
8dd883a312
2 changed files with 3 additions and 0 deletions
|
@ -279,6 +279,8 @@ App::post('/v1/projects')
|
|||
}
|
||||
}
|
||||
|
||||
// Hook allowing instant project mirroring during migration
|
||||
// Outside of migration, hook is not registered and has no effect
|
||||
$hooks->trigger('afterProjectCreation', [ $project, $pools, $cache ]);
|
||||
|
||||
$response
|
||||
|
|
|
@ -307,6 +307,7 @@ class Exception extends \Exception
|
|||
$this->type = $type;
|
||||
$this->code = $code ?? $this->errors[$type]['code'];
|
||||
|
||||
// Mark string errors like HY001 from PDO as 500 errors
|
||||
if(\is_string($this->code)) {
|
||||
if (\is_numeric($this->code)) {
|
||||
$this->code = (int) $this->code;
|
||||
|
|
Loading…
Reference in a new issue