Skip to content

Commit

Permalink
refactor(ext/console): align error messages (#25301)
Browse files Browse the repository at this point in the history
Aligns the error messages in the console extension to be in-line with
the Deno style guide.

#25269
  • Loading branch information
irbull authored Sep 2, 2024
1 parent a3bd1ba commit 977f813
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ext/console/01_console.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down Expand Up @@ -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,
);
}

Expand Down

0 comments on commit 977f813

Please sign in to comment.