Skip to content

Commit

Permalink
fix(core): fix cannot read properties of undefined (reading 'split')
Browse files Browse the repository at this point in the history
  • Loading branch information
xiongemi committed Nov 6, 2024
1 parent bd40a56 commit d96ebb6
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -372,8 +372,10 @@ export async function createProjectConfigurations(
} else {
errorBodyLines.push(` - ${e.message}`);
}
const innerStackTrace = ' ' + e.stack.split('\n').join('\n ');
errorBodyLines.push(innerStackTrace);
if (e.stack) {
const innerStackTrace = ' ' + e.stack.split('\n')?.join('\n ');
errorBodyLines.push(innerStackTrace);
}
}

error.stack = errorBodyLines.join('\n');
Expand Down

0 comments on commit d96ebb6

Please sign in to comment.