diff options
author | Joas Schilling <nickvergessen@gmx.de> | 2013-06-19 13:45:42 +0200 |
---|---|---|
committer | Joas Schilling <nickvergessen@gmx.de> | 2013-06-19 13:45:42 +0200 |
commit | 99e486dc8234d28aae1e9c3ed108f0b78d0033f0 (patch) | |
tree | 872cd918ce566d06839eb482792fc2ba560d5c35 /git-tools/setup_github_network.php | |
parent | 1516ae7e7ed77879506a32f00c9787b95106235d (diff) | |
download | forums-99e486dc8234d28aae1e9c3ed108f0b78d0033f0.tar forums-99e486dc8234d28aae1e9c3ed108f0b78d0033f0.tar.gz forums-99e486dc8234d28aae1e9c3ed108f0b78d0033f0.tar.bz2 forums-99e486dc8234d28aae1e9c3ed108f0b78d0033f0.tar.xz forums-99e486dc8234d28aae1e9c3ed108f0b78d0033f0.zip |
[ticket/11603] Throw RuntimeExceptions instead of using exit()
PHPBB3-11603
Diffstat (limited to 'git-tools/setup_github_network.php')
-rwxr-xr-x | git-tools/setup_github_network.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/git-tools/setup_github_network.php b/git-tools/setup_github_network.php index e5bc89bf91..bc85d67ab5 100755 --- a/git-tools/setup_github_network.php +++ b/git-tools/setup_github_network.php @@ -187,7 +187,7 @@ function api_url_request($url) if (isset($contents->message) && strpos($contents->message, 'API Rate Limit') === 0) { - exit('Reached github API Rate Limit. Please try again later' . "\n"); + throw new RuntimeException('Reached github API Rate Limit. Please try again later' . "\n", 4); } return ($sub_request_result) ? array_merge($sub_request_result, $contents) : $contents; |