Skip to content

Commit

Permalink
dnk: exit with fail status if can't connect
Browse files Browse the repository at this point in the history
  • Loading branch information
danuk committed Oct 8, 2019
1 parent 1e2d661 commit 850db34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/lib/SHM.pm
Expand Up @@ -82,7 +82,7 @@ sub new {
unless ( $dbh ) {
print_header( status => 503 );
print_json( { status => 503, msg=> "Can't connect to DB" } );
exit 0;
exit 1;
}

$config->local('dbh', $dbh );
Expand Down

0 comments on commit 850db34

Please sign in to comment.