We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6899b8c commit cba573fCopy full SHA for cba573f
index.php
@@ -60,7 +60,12 @@ function runCode($__source_code, $__bootstrap_file)
60
if ($__bootstrap_file) {
61
require $__bootstrap_file;
62
}
63
- eval($__source_code);
+ try {
64
+ eval($__source_code);
65
+ } catch (\Throwable $e) {
66
+ echo '<br><br>Uncaught exception: '.get_class($e).' '.$e->getMessage().' in '.$e->getFile().':'.$e->getLine().'<br>';
67
+ throw $e;
68
+ }
69
70
71
if (isset($_POST['code'])) {
@@ -209,4 +214,4 @@ function runCode($__source_code, $__bootstrap_file)
209
214
</div>
210
215
211
216
</body>
212
-</html>
217
+</html>
0 commit comments