Skip to content
Snippets Groups Projects
Commit 3862da0e authored by Andreas Gohr's avatar Andreas Gohr
Browse files

throw exception in nice_die during tests

Exits during testing will break the whole test suite. It makes more
sense to throw an exception in that case. The exception's stack trace
will help to debug the actual problem
parent 27c0c399
No related branches found
No related tags found
No related merge requests found
......@@ -527,6 +527,9 @@ function nice_die($msg){
</body>
</html>
EOT;
if(defined('DOKU_UNITTEST')) {
throw new RuntimeException('nice_die: '.$msg);
}
exit(1);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment