Skip to content

Commit

Permalink
Merge pull request #241 from XhmikosR/v1.x-eol
Browse files Browse the repository at this point in the history
[1.x] Remove `os.EOL` and just use `'\n'`
  • Loading branch information
bezoerb committed Nov 9, 2019
2 parents 0710569 + c0ede0a commit a4ca44e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
'use strict';
const os = require('os');
const defaults = require('lodash.defaults');
const map = require('lodash.map');
const debug = require('debug')('asset-resolver');
Expand All @@ -25,6 +24,6 @@ module.exports.getResource = function (file, opts) {
})).catch(Bluebird.AggregateError, errs => {
const msg = ['The file "' + file + '" could not be resolved because of:'].concat(map(errs, 'message'));
debug(msg);
return Bluebird.reject(new Error(msg.join(os.EOL)));
return Bluebird.reject(new Error(msg.join('\n')));
});
};

0 comments on commit a4ca44e

Please sign in to comment.