Skip to content

Commit

Permalink
Report the name of an unreadable directory.
Browse files Browse the repository at this point in the history
  * src/alire/alire-index_on_disk.adb (New_Handler.Process_Local_Index):
      If the Path isn't a writable directory (e.g. because it doesn't
      exist), add it to the message in Outcome_Failure.
  • Loading branch information
simonjwright committed Dec 31, 2023
1 parent a11839b commit d40a3c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/alire/alire-index_on_disk.adb
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ package body Alire.Index_On_Disk is
Dir : constant Virtual_File := Create (+Path);
begin
if not Dir.Is_Directory then
Result := Outcome_Failure ("Not a readable directory");
Result := Outcome_Failure ("Not a readable directory: " & Path);
return New_Invalid_Index;
end if;

Expand Down

0 comments on commit d40a3c6

Please sign in to comment.