fix(core): change error handling threshold on create-nx-workspace (#15176)

Co-authored-by: AgentEnder <craigorycoppola@gmail.com>
This commit is contained in:
Miroslav Jonaš 2023-02-24 23:11:54 +01:00 committed by GitHub
parent 892dbe8134
commit eede1abf35
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1310,7 +1310,7 @@ function mapErrorToBodyLines(error: {
code: number;
logFile: string;
}): string[] {
if (error.logMessage?.split('\n').filter((line) => !!line).length === 1) {
if (error.logMessage?.split('\n').filter((line) => !!line).length < 3) {
// print entire log message only if it's only a single message
return [`Error: ${error.logMessage}`];
}