From 878fd4de4807270de718b54eac293096520a5a3e Mon Sep 17 00:00:00 2001 From: rvcas Date: Tue, 13 Jun 2023 20:27:26 -0400 Subject: [PATCH] feat: include column number in location --- crates/aiken/src/main.rs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/crates/aiken/src/main.rs b/crates/aiken/src/main.rs index 5446c99e..28ff591b 100644 --- a/crates/aiken/src/main.rs +++ b/crates/aiken/src/main.rs @@ -48,6 +48,8 @@ impl Default for Cmd { fn main() -> miette::Result<()> { panic_handler(); + panic!("dam no way!"); + match Cmd::default() { Cmd::New(args) => new::exec(args), Cmd::Fmt(args) => fmt::exec(args), @@ -90,7 +92,14 @@ fn panic_handler() { let location = info.location().map_or_else( || "".into(), - |location| format!("{}:{}\n\n ", location.file(), location.line()), + |location| { + format!( + "{}:{}:{}\n\n ", + location.file(), + location.line(), + location.column(), + ) + }, ); let error_message = indoc::formatdoc! {