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 4, 2024
1 parent 38448da commit a030d98
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 a030d98

Please sign in to comment.