From c4c6a8dae488a3473ee09b0e3a54943b706d8944 Mon Sep 17 00:00:00 2001 From: Andrew Mitchell <32021055+mitch292@users.noreply.github.com> Date: Fri, 5 Jun 2020 12:01:02 +0000 Subject: 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 --- cli/js/error_stack.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cli/js/error_stack.ts') 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) { -- cgit v1.2.3