improve s3key exception (#661)
This commit is contained in:
parent
5bc0d3ccc8
commit
b0311257ac
|
|
@ -42,7 +42,7 @@ class S3KeyCleaner
|
|||
}
|
||||
|
||||
if (!$objectKey || (!is_string($objectKey) && !is_numeric($objectKey))) {
|
||||
throw new \Exception("Expected non-empty string or number, got ${objectKey}");
|
||||
throw new \Exception("Invalid object key: Expected non-empty string or number, received " . (is_object($objectKey) ? get_class($objectKey) : gettype($objectKey)));
|
||||
}
|
||||
|
||||
if (is_numeric($objectKey)) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue