This commit is contained in:
Shish
2020-01-29 00:49:21 +00:00
parent e8a72b0291
commit 6d3ca01424
23 changed files with 95 additions and 55 deletions

View File

@ -17,7 +17,7 @@ class RandomImage extends Extension
throw new SCoreException("Error: too many arguments.");
}
$image = Image::by_random($search_terms);
if(!$image) {
if (!$image) {
throw new SCoreException(
"Couldn't find any images randomly",
Tag::implode($search_terms)