Fix typo in diagnostic messages
This commit is contained in:
parent
e7493d0d49
commit
94c9e83d06
1 changed files with 3 additions and 3 deletions
|
@ -361,17 +361,17 @@ export class ConsoleDiagnostics implements Diagnostics {
|
||||||
this.writer.indent();
|
this.writer.indent();
|
||||||
if (diagnostic.missing !== null) {
|
if (diagnostic.missing !== null) {
|
||||||
this.writer.write(ANSI_FG_YELLOW + ANSI_BOLD + 'info: ' + ANSI_RESET);
|
this.writer.write(ANSI_FG_YELLOW + ANSI_BOLD + 'info: ' + ANSI_RESET);
|
||||||
this.writer.write(`field '${diagnostic.fieldName}' is missing in diagnostic construct\n\n`);
|
this.writer.write(`field '${diagnostic.fieldName}' is missing in this construct\n\n`);
|
||||||
this.writer.write(printNode(diagnostic.missing) + '\n');
|
this.writer.write(printNode(diagnostic.missing) + '\n');
|
||||||
}
|
}
|
||||||
if (diagnostic.present !== null) {
|
if (diagnostic.present !== null) {
|
||||||
this.writer.write(ANSI_FG_YELLOW + ANSI_BOLD + 'info: ' + ANSI_RESET);
|
this.writer.write(ANSI_FG_YELLOW + ANSI_BOLD + 'info: ' + ANSI_RESET);
|
||||||
this.writer.write(`field '${diagnostic.fieldName}' is required in diagnostic construct\n\n`);
|
this.writer.write(`field '${diagnostic.fieldName}' is required in this construct\n\n`);
|
||||||
this.writer.write(printNode(diagnostic.present) + '\n');
|
this.writer.write(printNode(diagnostic.present) + '\n');
|
||||||
}
|
}
|
||||||
if (diagnostic.cause !== null) {
|
if (diagnostic.cause !== null) {
|
||||||
this.writer.write(ANSI_FG_YELLOW + ANSI_BOLD + 'info: ' + ANSI_RESET);
|
this.writer.write(ANSI_FG_YELLOW + ANSI_BOLD + 'info: ' + ANSI_RESET);
|
||||||
this.writer.write(`because of a constraint on diagnostic node:\n\n`);
|
this.writer.write(`because of a constraint on this node:\n\n`);
|
||||||
this.writer.write(printNode(diagnostic.cause) + '\n');
|
this.writer.write(printNode(diagnostic.cause) + '\n');
|
||||||
}
|
}
|
||||||
this.writer.dedent();
|
this.writer.dedent();
|
||||||
|
|
Loading…
Reference in a new issue