Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Insight] exit() and die() functions should be avoided - in index.php, line 86 #3

Open
ivarb opened this issue Jul 12, 2016 · 0 comments

Comments

@ivarb
Copy link
Owner

ivarb commented Jul 12, 2016

in index.php, line 86

This line stops the execution flow, without explanation. If this is for debug, you should remove it. If this is to deal with an error, use exceptions instead.

    // Store game in runs dir
    $game->store();

} catch (Exception $e) {
    die('<hr>ERROR: ' . (string) $e);
}
?><style type="text/css">
.world {

Posted from SensioLabsInsight

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant