Skip to content

Commit a99b9a6

Browse files
committed
Add return to error
1 parent 0658454 commit a99b9a6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

plugins/output/adapt/importsource.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ function ImportSource(req, done) {
183183
app.contentmanager.getContentPlugin('tag', function(error, plugin) {
184184
if(!error) {
185185
plugin.create({ title: tag.title}, function(error, record) {
186-
if(error) logger.log('warn', 'Failed to create asset tag: ' + (tag.title || '') + ' ' + error);
186+
if(error) return logger.log('warn', 'Failed to create asset tag: ' + (tag.title || '') + ' ' + error);
187187
tags.push(record._id);
188188
});
189189
};

0 commit comments

Comments
 (0)