Skip to content

Commit 2d806ed

Browse files
committed
use es6 string template for error message
1 parent 6f3086f commit 2d806ed

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
@@ -38,7 +38,7 @@ Template.afFileUpload.onCreated(function () {
3838
}
3939

4040
if (!this.collection) {
41-
throw new Meteor.Error(404, '[meteor-autoform-files] No such collection "' + this.data.atts.collection + '"');
41+
throw new Meteor.Error(404, `[meteor-autoform-files] No such collection "${this.data.atts.collection}"`);
4242
}
4343

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

0 commit comments

Comments
 (0)