mirror of
https://github.com/denoland/deno.git
synced 2025-08-03 10:33:54 +00:00
fix: Use # to denote line number in stack traces (#6114)
This makes the URLs in stack traces actual URLs to the files. Before: https://deno.land/std/testing/asserts.ts:138:11 After: https://deno.land/std/testing/asserts.ts#138:11
This commit is contained in:
parent
9a783ae4e6
commit
c4c6a8dae4
19 changed files with 56 additions and 56 deletions
|
@ -119,7 +119,7 @@ function getFileLocation(callSite: CallSite, isInternal = false): string {
|
|||
|
||||
const lineNumber = callSite.getLineNumber();
|
||||
if (lineNumber != null) {
|
||||
result += `${black(":")}${yellow(lineNumber.toString())}`;
|
||||
result += `${black("#")}${yellow(lineNumber.toString())}`;
|
||||
|
||||
const columnNumber = callSite.getColumnNumber();
|
||||
if (columnNumber != null) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue