From 94c9e83d067d38f0999aa97f982c3b5dbe937733 Mon Sep 17 00:00:00 2001 From: Sam Vervaeck Date: Wed, 12 Apr 2023 21:39:06 +0200 Subject: [PATCH] Fix typo in diagnostic messages --- src/diagnostics.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/diagnostics.ts b/src/diagnostics.ts index d7f7ae8ac..70f90a7d4 100644 --- a/src/diagnostics.ts +++ b/src/diagnostics.ts @@ -361,17 +361,17 @@ export class ConsoleDiagnostics implements Diagnostics { this.writer.indent(); if (diagnostic.missing !== null) { 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'); } if (diagnostic.present !== null) { 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'); } if (diagnostic.cause !== null) { 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.dedent();