From e597f2007c1521dc0dfb040fb99a96ec8ccee2a4 Mon Sep 17 00:00:00 2001 From: Ryan Gonzalez Date: Sun, 30 Jun 2024 11:37:38 -0500 Subject: [PATCH] Include the exe name in llvm-symbolizer errors --- tools/alys_converter.cr | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/alys_converter.cr b/tools/alys_converter.cr index 02442ab..758d0dc 100644 --- a/tools/alys_converter.cr +++ b/tools/alys_converter.cr @@ -99,6 +99,7 @@ class Symbolizer return symbol end + # TODO: better quoting? @llvm_symbolizer.input.puts "FILE:\"#{exe}\" #{ip}\n" @llvm_symbolizer.input.flush @@ -112,7 +113,7 @@ class Symbolizer end if error = output.error - raise "llvm-symbolizer returned an error: #{error.message}" + raise "llvm-symbolizer returned an error: #{exe}: #{error.message}" end symbol = Output.from_json(line).symbols.try(&.[0]?).try(&.to_symbol) -- 2.45.2