Skip to content

Commit 44e61ad

Browse files
committed
fix: Align error suggestions with --gcov alias and PATH guidance
1 parent 0142bce commit 44e61ad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/core/error/error_handlers.f90

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ subroutine handle_invalid_config(config_file, line_number, error_ctx)
109109
error_ctx%suggestion = trim(error_ctx%suggestion) // char(10) // &
110110
"2. Example: fortcov --source=src *.gcov --output=coverage.md"
111111
error_ctx%suggestion = trim(error_ctx%suggestion) // char(10) // &
112-
"3. For auto mode: fortcov --discover-and-gcov"
112+
"3. For auto mode: fortcov --gcov (alias: --discover-and-gcov)"
113113

114114
write(error_ctx%context, '(A)') "Configuration parsing"
115115
end subroutine handle_invalid_config
@@ -196,7 +196,7 @@ subroutine handle_gcov_not_found(gcov_path, error_ctx)
196196
error_ctx%suggestion = trim(error_ctx%suggestion) // char(10) // &
197197
"2. Find gcov location: which gcov || find /usr -name 'gcov*'"
198198
error_ctx%suggestion = trim(error_ctx%suggestion) // char(10) // &
199-
"3. Specify path: --gcov=/usr/bin/gcov-11"
199+
"3. Ensure gcov is on PATH (e.g., gcov-11)"
200200
error_ctx%suggestion = trim(error_ctx%suggestion) // char(10) // &
201201
"4. Check gcc installation: gcc --version"
202202

0 commit comments

Comments
 (0)