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:
Andrew Mitchell 2020-06-05 12:01:02 +00:00 committed by GitHub
parent 9a783ae4e6
commit c4c6a8dae4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
19 changed files with 56 additions and 56 deletions

View file

@ -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) {