Skip to content

Commit 1551801

Browse files
committed
more clear error message
1 parent 488cc2c commit 1551801

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/client/fileUpload.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ Template.afFileUpload.onCreated(function () {
4545
}
4646

4747
if (!this.collection) {
48-
throw new Meteor.Error(404, `[meteor-autoform-files] No such collection "${this.data.atts.collection}"`);
48+
throw new Meteor.Error(404, `[meteor-autoform-files] No collection found by name "${this.data.atts.collection}"`);
4949
}
5050

5151
this.uploadTemplate = this.data.atts.uploadTemplate || null;

0 commit comments

Comments
 (0)