Skip to content

Commit 4b79180

Browse files
committed
added error details to collection not found error
1 parent 1551801 commit 4b79180

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/client/fileUpload.js

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

4747
if (!this.collection) {
48-
throw new Meteor.Error(404, `[meteor-autoform-files] No collection found by name "${this.data.atts.collection}"`);
48+
throw new Meteor.Error(404, `[meteor-autoform-files] No collection found by name "${this.data.atts.collection}"`,
49+
`Collection's name is case-sensetive. Please, make sure you're using right collection name.`);
4950
}
5051

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

0 commit comments

Comments
 (0)