From 0337b2e7a99463d92246622f2a0ab2270ba79d84 Mon Sep 17 00:00:00 2001 From: Asher Gomez Date: Fri, 19 Jan 2024 12:05:41 +1100 Subject: [PATCH] tweak --- internal/warn_on_deprecated_api.ts | 2 +- internal/warn_on_deprecated_api_test.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/warn_on_deprecated_api.ts b/internal/warn_on_deprecated_api.ts index 4a09ab3cc70d..9f908b1e15b3 100644 --- a/internal/warn_on_deprecated_api.ts +++ b/internal/warn_on_deprecated_api.ts @@ -78,12 +78,12 @@ export function warnOnDeprecatedApi(config: WarnDeprecatedApiConfig) { ); } - console.log("%c\u2502", "color: yellow;"); console.log("%c\u2502", "color: yellow;"); console.log( "%c\u251c Set `DENO_NO_DEPRECATION_WARNINGS=1` to disable these deprecation warnings.", "color: yellow;", ); + console.log("%c\u2502", "color: yellow;"); console.log("%c\u2514 Stack trace:", "color: yellow;"); for (let i = 0; i < stackLines.length; i++) { console.log( diff --git a/internal/warn_on_deprecated_api_test.ts b/internal/warn_on_deprecated_api_test.ts index 2e6203ba4578..e423f4b7fdc0 100644 --- a/internal/warn_on_deprecated_api_test.ts +++ b/internal/warn_on_deprecated_api_test.ts @@ -20,8 +20,8 @@ Deno.test("warnDeprecatedApi()", async () => { │ ├ Suggestion: Do something else instead. │ -│ ├ Set \`DENO_NO_DEPRECATION_WARNINGS=1\` to disable these deprecation warnings. +│ └ Stack trace: ├─ at fn (${import.meta.url}:39:12) └─ at ${import.meta.url}:47:31