Skip to content

Commit

Permalink
Fix project.json extraction error message
Browse files Browse the repository at this point in the history
JSON.stringify on an error always returns "{}" which is completely useless
  • Loading branch information
GarboMuffin committed May 12, 2022
1 parent 8c2c55f commit 64dfc0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/unzip.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ module.exports = function (input, isSprite, callback) {
return callback(msg + 'missing project or sprite json');
})
.catch(function (err) {
return callback(msg + JSON.stringify(err));
return callback(msg + err);
});

};

0 comments on commit 64dfc0c

Please sign in to comment.