From 664d0c199f80ccd33fe20ad8db3b5e2fd819d200 Mon Sep 17 00:00:00 2001 From: Alejandro R Mosteo Date: Thu, 2 Mar 2023 11:04:27 +0100 Subject: [PATCH] More explicit identifier error message (#1341) --- src/alire/alire.adb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/alire/alire.adb b/src/alire/alire.adb index 240f7b71a..fa5a05d0d 100644 --- a/src/alire/alire.adb +++ b/src/alire/alire.adb @@ -180,7 +180,11 @@ package body Alire is & " with 'alr help identifiers'"; end if; - return +Err; + if Err /= "" then + return "Invalid name '" & Utils.TTY.Name (S) & "': " & (+Err); + else + return ""; + end if; end Error_In_Name; -------------------