Commit c3e7eb8
committed
fix: Store absolute path in attemptedPaths for accurate error reporting
Fixed Issue #9: Error message was checking file existence against CWD instead of actual resolved path.
Before:
- attemptedPaths stored raw relative path: ../parent/pom.xml
- Error check: new File(../parent/pom.xml).exists() → checked CWD (wrong!)
After:
- attemptedPaths stores absolute resolved path: /project/parent/pom.xml
- Error check: new File(/project/parent/pom.xml).exists() → correct location
This ensures error messages accurately report whether the file exists at the actual location resolution attempted, not a coincidental match in CWD.1 parent 7e4fc8d commit c3e7eb8
1 file changed
Lines changed: 1 addition & 1 deletion
File tree
- mule-linter-spi/src/main/groovy/com/avioconsulting/mule/linter/resolver
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
94 | | - | |
| 94 | + | |
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
| |||
0 commit comments