Skip to content

Commit

Permalink
fix: ts error line number
Browse files Browse the repository at this point in the history
  • Loading branch information
ShenQingchuan committed Sep 16, 2022
1 parent 38a96b7 commit 426c836
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ts-errs-map.ts
Expand Up @@ -29,9 +29,9 @@ async function getErrPreviewLineByIndexFromFile(
)
return `${errMsg}
${chalk.gray(`${String(line)} ┆`)}${prevLine}
${chalk.gray(`${String(line - 1)} ┆`)}${prevLine}
${chalk.bold.red(`${String(line)} ┆`)}${chalk.bold.underline(lineContent)}
${chalk.gray(`${String(line)} ┆`)}${nextLine}`
${chalk.gray(`${String(line + 1)} ┆`)}${nextLine}`
}

async function makeTscErrorInfo(
Expand Down

0 comments on commit 426c836

Please sign in to comment.