Skip to content

Commit

Permalink
Fix debugPrintErrorInString function in sut.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
yazaldefilimone committed Feb 25, 2024
1 parent 647d04e commit 890724a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/parser/tests/sut.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ function debugPrintError(errors: ErrorHandler) {

function debugPrintErrorInString(errors: ErrorHandler) {
// remove comments if you want debug
// errors.getErrorsInString().map((message) => {
// const error = "Error: " + message.concat("\n");
// console.log("\x1b[31m%s\x1b[0m", error);
// });
errors.getErrorsInString().map((message) => {
const error = "Error: " + message.concat("\n");
console.log("\x1b[31m%s\x1b[0m", error);
});
}
function debugToString(program: Program) {
// remove comments if you want debug
// console.log(program.toString().concat("\n"));
console.log(program.toString().concat("\n"));
}
type debugType = {
isLogError?: boolean;
Expand Down

0 comments on commit 890724a

Please sign in to comment.