Skip to content

Commit

Permalink
Update Uploader.php
Browse files Browse the repository at this point in the history
  • Loading branch information
aslubsky committed Apr 6, 2015
1 parent a5a573b commit fe9814d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Bazalt/Rest/Uploader.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public function __construct(array $allowedExtensions = array(), $sizeLimit = DEF
public function handleUpload($uploadDirectory, $pathParams = array())
{
if (!is_writable($uploadDirectory)) {
throw new \Exception("Server error. Upload directory isn't writable.");
throw new \Exception(sprintf("Upload directory '%s' isn't writable.", $uploadDirectory));
}

if (!isset($_FILES['file'])) {
Expand Down

0 comments on commit fe9814d

Please sign in to comment.