We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dd6c72e commit e44ff23Copy full SHA for e44ff23
packages/commands/validate/src/index.ts
@@ -375,12 +375,7 @@ function printInvalidDocuments(
375
}
376
377
function renderErrors(sourceName: string, errors: GraphQLError[], isError = false): string[] {
378
- const errorsAsString = errors.map(e => ` - ${bolderize(e.message)}`).join('\n');
379
-
380
- return [
381
- isError ? chalk.redBright('error') : chalk.yellowBright('warn'),
382
- `in ${sourceName}:\n\n`,
383
- errorsAsString,
384
- '\n\n',
385
- ];
+ return errors.map(e => {
+ return `${isError ? chalk.redBright('error') : chalk.yellowBright('warn')} in ${sourceName}: ${bolderize(e.message)}`
+ })
386
0 commit comments