Minor fix

parent 9fac871d
......@@ -37,7 +37,7 @@ $container['errorHandler'] = function ($c) {
return $c['response']->withJson([
'message' => 'Προέκυψε λάθος',
'in' => $exception->getMessage()
], $exception->getCode()
], intval($code = $exception->getCode()) > 0 ? $code : null
);
};
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment