From df8ad46daef960accd1e307f74e7bcb705e9fc7b Mon Sep 17 00:00:00 2001 From: Bart Visscher Date: Sun, 21 Jul 2013 22:29:50 +0200 Subject: Change exit calls to throwing an exception This way the error won't be fatal in a unit test --- lib/helper.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib/helper.php') diff --git a/lib/helper.php b/lib/helper.php index df0d120976d..ca508e1d933 100644 --- a/lib/helper.php +++ b/lib/helper.php @@ -176,8 +176,7 @@ class OC_Helper { }elseif( file_exists( OC::$SERVERROOT."/core/img/$image" )) { return OC::$WEBROOT."/core/img/$image"; }else{ - echo('image not found: image:'.$image.' webroot:'.OC::$WEBROOT.' serverroot:'.OC::$SERVERROOT); - die(); + throw new RuntimeException('image not found: image:'.$image.' webroot:'.OC::$WEBROOT.' serverroot:'.OC::$SERVERROOT); } } -- cgit v1.2.3