From 453e15f502f94e5605b29527d406eb500234e828 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Wed, 12 Nov 2008 10:11:05 +0000 Subject: Throw an exception when we can't upload a file. This is not the best solution, but it works for now. --- core/controllers/item.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/controllers') diff --git a/core/controllers/item.php b/core/controllers/item.php index 9eb06ad1..78ee7b0b 100644 --- a/core/controllers/item.php +++ b/core/controllers/item.php @@ -52,8 +52,8 @@ class Item_Controller extends REST_Controller { $_FILES["file"]["name"][$i], $_FILES["file"]["name"][$i]); } else { - print "ERROR!"; // @todo return a reasonable error + throw new Exception("@todo ERROR_IN_UPLOAD_FILE"); } } url::redirect("album/{$item->id}"); -- cgit v1.2.3