Skip to content

Commit

Permalink
refactor(ext/console): align error messages
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.

denoland#25269
  • Loading branch information
irbull committed Aug 29, 2024
1 parent a4707f7 commit 574209f
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 574209f

Please sign in to comment.