Skip to content

Commit

Permalink
Don’t mix console.log and console.error (#940)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewbranch authored Feb 7, 2024
1 parent a367537 commit 278535d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/lemon-clocks-end.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@definitelytyped/dtslint-runner": patch
---

Don’t mix console.log and console.error
6 changes: 3 additions & 3 deletions packages/dtslint-runner/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,10 +160,10 @@ export async function runDTSLint({
}

if (allFailures.length) {
console.error("\n\n=== ERRORS ===\n");
console.log("\n\n=== ERRORS ===\n");
for (const [path, error] of allFailures) {
console.error(`\n\nError in ${path}`);
console.error(error);
console.log(`\n\nError in ${path}`);
console.log(error);
}
}

Expand Down

0 comments on commit 278535d

Please sign in to comment.