Skip to content

Commit ed9aa8e

Browse files
committed
Output the full searching path when cannot find an LKQL rule file
1 parent 681778d commit ed9aa8e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lkql_checker/src/gnatcheck-rules-rule_table.adb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -829,7 +829,7 @@ package body Gnatcheck.Rules.Rule_Table is
829829
begin
830830
-- Ensure that the provided rule file exists
831831
if not Is_Regular_File (Rule_File_Absolute_Path) then
832-
Error ("can not locate LKQL rule file " & LKQL_RF_Name);
832+
Error ("can not locate LKQL rule file " & Rule_File_Absolute_Path);
833833
Missing_Rule_File_Detected := True;
834834
return;
835835
end if;

testsuite/tests/gnatcheck_errors/invalid_lkql_rules_config/test.out

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ try "gnatcheck --help" for more information.
5959
Not existing file
6060
=================
6161

62-
gnatcheck: error: can not locate LKQL rule file not_existing.lkql
62+
gnatcheck: error: can not locate LKQL rule file <working-dir>/not_existing.lkql
6363
gnatcheck: error: no rule to check specified
6464
try "gnatcheck --help" for more information.
6565
>>>program returned status code 2

0 commit comments

Comments
 (0)