From 574209f8006e874f85da9df7ffe47f5e05ab5a4f Mon Sep 17 00:00:00 2001 From: Ian Bull Date: Thu, 29 Aug 2024 14:00:13 -0700 Subject: [PATCH] refactor(ext/console): align error messages Aligns the error messages in the console extension to be in-line with the Deno style guide. https://github.com/denoland/deno/issues/25269 --- ext/console/01_console.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ext/console/01_console.js b/ext/console/01_console.js index 6812583e0bf3ec..017e6cb772ee9f 100644 --- a/ext/console/01_console.js +++ b/ext/console/01_console.js @@ -179,7 +179,7 @@ class AssertionError extends Error { } } -function assert(cond, msg = "Assertion failed.") { +function assert(cond, msg = "Assertion failed") { if (!cond) { throw new AssertionError(msg); } @@ -3236,8 +3236,8 @@ class Console { table = (data = undefined, properties = undefined) => { if (properties !== undefined && !ArrayIsArray(properties)) { throw new Error( - "The 'properties' argument must be of type Array. " + - "Received type " + typeof properties, + "The 'properties' argument must be of type Array: " + + "received type " + typeof properties, ); }