Skip to content

Commit

Permalink
Fix extra-from-error processing to handle Win32 absolute paths (#663)
Browse files Browse the repository at this point in the history
  • Loading branch information
coreyfarrell committed Apr 23, 2020
1 parent 4e0668a commit dc9b8f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/extra-from-error.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit dc9b8f6

Please sign in to comment.