diff --git a/lib/extra-from-error.js b/lib/extra-from-error.js index afba1cfd0..58ab3841c 100644 --- a/lib/extra-from-error.js +++ b/lib/extra-from-error.js @@ -36,9 +36,9 @@ module.exports = (er, extra, options) => { if (st) { const splitst = st.split('\n') if (er._babel && er.loc) { - const msplit = message.split(':') + const msplit = message.split(': ') const f = msplit[0].trim() - extra.message = msplit.slice(1).join(':') + extra.message = msplit.slice(1).join(': ') .replace(/ \([0-9]+:[0-9]+\)$/, '').trim() const file = f.indexOf(process.cwd()) === 0 ? f.substr(process.cwd().length + 1) : f