Skip to content

Commit

Permalink
More explicit identifier error message (#1341)
Browse files Browse the repository at this point in the history
  • Loading branch information
mosteo authored Mar 2, 2023
1 parent 40c25f1 commit 664d0c1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/alire/alire.adb
Original file line number Diff line number Diff line change
Expand Up @@ -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;

-------------------
Expand Down

0 comments on commit 664d0c1

Please sign in to comment.