Skip to content

Commit 1fda733

Browse files
Adjust the error when the cloudName is missing - we cannot at this point set this value through the toURL() method`
1 parent d2f81e1 commit 1fda733

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/assets/CloudinaryFile.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ class CloudinaryFile {
181181
*/
182182
validateAssetForURLCreation(): void {
183183
if (typeof this.cloudName === 'undefined') {
184-
throw 'You must supply a cloudName in either toURL() or when initializing the asset';
184+
throw 'You must supply a cloudName when initializing the asset';
185185
}
186186

187187
const suffixContainsDot = this.suffix && this.suffix.indexOf('.') >= 0;

0 commit comments

Comments
 (0)