diff options
author | Bharat Mediratta <bharat@menalto.com> | 2008-11-12 10:11:05 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2008-11-12 10:11:05 +0000 |
commit | 453e15f502f94e5605b29527d406eb500234e828 (patch) | |
tree | 8f1679b8b9f84c72754e4fbc543022cf33d6a5f9 | |
parent | 7423c755c04d55dda274baf24c38ef76815cc92b (diff) |
Throw an exception when we can't upload a file. This is not the best solution, but it works for now.
-rw-r--r-- | core/controllers/item.php | 2 |
1 files changed, 1 insertions, 1 deletions
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}"); |