summaryrefslogtreecommitdiff
path: root/ext/console
diff options
context:
space:
mode:
authorIan Bull <irbull@eclipsesource.com>2024-09-02 07:28:17 -0700
committerGitHub <noreply@github.com>2024-09-02 16:28:17 +0200
commit977f8137f3131024e6dbdeb695ded1d33a99d650 (patch)
tree5d125f87a1f05a4b8b657678fb85915a3a928647 /ext/console
parenta3bd1ba26d77051b53344a9d3e8574c2ada38114 (diff)
refactor(ext/console): align error messages (#25301)
Aligns the error messages in the console extension to be in-line with the Deno style guide. https://github.com/denoland/deno/issues/25269
Diffstat (limited to 'ext/console')
-rw-r--r--ext/console/01_console.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/console/01_console.js b/ext/console/01_console.js
index 6812583e0..017e6cb77 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,
);
}