Skip to content

Commit

Permalink
Merge pull request #174 from stefnats/master
Browse files Browse the repository at this point in the history
Fix "Crop already exists"
  • Loading branch information
weotch authored Mar 14, 2020
2 parents 820d4cb + 9ba6055 commit b9715b1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Bkwld/Croppa/Storage.php
Original file line number Diff line number Diff line change
Expand Up @@ -181,9 +181,7 @@ public function writeCrop($path, $contents) {
try {
$this->getCropsDisk()->write($path, $contents);
} catch(FileExistsException $e) {
throw new Exception("Croppa: Crop already exists at $path. You probably
have a misconfiguration. Make sure that the URL to your crop can be
transformed by the `path` config to your `crop_dir`.");
// don't throw exception anymore as mentioned in PR #164
}

}
Expand Down

0 comments on commit b9715b1

Please sign in to comment.