diff options
author | Andrew Mitchell <32021055+mitch292@users.noreply.github.com> | 2020-06-05 12:01:02 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-05 08:01:02 -0400 |
commit | c4c6a8dae488a3473ee09b0e3a54943b706d8944 (patch) | |
tree | 46e1870821c822d3a725ce16868fd3329955e329 /cli/js/error_stack.ts | |
parent | 9a783ae4e6789fc90c8a6d62e846c9abd29e7d2f (diff) |
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
Diffstat (limited to 'cli/js/error_stack.ts')
-rw-r--r-- | cli/js/error_stack.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/js/error_stack.ts b/cli/js/error_stack.ts index 39561ad85..fb07b6f41 100644 --- a/cli/js/error_stack.ts +++ b/cli/js/error_stack.ts @@ -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) { |