summaryrefslogtreecommitdiff
path: root/cli/graph_util.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/graph_util.rs')
-rw-r--r--cli/graph_util.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/cli/graph_util.rs b/cli/graph_util.rs
index 6c38dccad..5dc7d17d6 100644
--- a/cli/graph_util.rs
+++ b/cli/graph_util.rs
@@ -96,7 +96,12 @@ pub fn graph_valid(
if let Some(range) = error.maybe_range() {
if !is_root && !range.specifier.as_str().contains("/$deno$eval") {
- message.push_str(&format!("\n at {range}"));
+ message.push_str(&format!(
+ "\n at {}:{}:{}",
+ colors::cyan(range.specifier.as_str()),
+ colors::yellow(&(range.start.line + 1).to_string()),
+ colors::yellow(&(range.start.character + 1).to_string())
+ ));
}
}