Skip to content

Commit 1a9d799

Browse files
author
Sergey
authored
removed die() in AbstractDataBase
In AbstractDataBase, when the user's mysql data is incorrect, the application died with a message. Now it is replaced by the usual exception
1 parent 2694211 commit 1a9d799

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/orm/DataBase/AbstractDataBase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public function __construct()
2626
->addQueryData('username', $settings->user)
2727
->addQueryData('password', $settings->password);
2828
} catch (\Exception $exception) {
29-
die(new OrmRuntimeException('Expected username and password for mysql server'));
29+
throw new OrmRuntimeException('Expected username and password for mysql server')
3030
}
3131
}
3232
}

0 commit comments

Comments
 (0)