Skip to content

Commit

Permalink
Merge branch 'asyncapi:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
Ankitchaudharyy authored Oct 10, 2022
2 parents 5d923e5 + b2f3143 commit 2caf3ca
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/lib/logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ export const logTypeScriptMessage = (message: string) => {

export const logTypeScriptError = (code: number, message: string, fileName: string, line: number, character: number) => {
const fileInfo = `${chalk.cyan(fileName)}:${chalk.yellow(line + 1)}:${chalk.yellow(character + 1)}`
const error = `${chalk.red('error')} ${chalk.gray(`TS${code}:`)}`
console.error(`${TSLogo} ${fileInfo} - ${error} ${message}`)
const error = chalk.red('error')
const errorCode = chalk.gray(`TS${code}:`)
console.error(`${TSLogo} ${fileInfo} - ${error} ${errorCode} ${message}`)
}

0 comments on commit 2caf3ca

Please sign in to comment.