diff --git a/public/teamtable/edit/update.php b/public/teamtable/edit/update.php index 48e46ca..9ec8b86 100644 --- a/public/teamtable/edit/update.php +++ b/public/teamtable/edit/update.php @@ -39,8 +39,8 @@ if ($_SERVER['REQUEST_METHOD'] == 'POST') $team->setPhone($phone); $team->setParticipants($participants); $team->setRounds($rounds); - } catch(Throwable $e) { - $app->session->flash('Kunne ikke oppdatere lag: Validerings feil ' . $e->getMessage() , 'danger'); + } catch(InvalidArgumentException $e) { + $app->session->flash('Kunne ikke oppdatere lag: Validerings feil: ' . $e->getMessage() , 'danger'); $app->redirect('index.php'); }