Skip to content

Commit 5937fc4

Browse files
committed
Add missing templates to src subfolder name case checks
The check functions already return this information, but the template was omitted from the error messages. Displaying the actual file name in the error message may help the user to understand the cause of the check failure.
1 parent 1df051b commit 5937fc4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

check/checkconfigurations/checkconfigurations.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1008,7 +1008,7 @@ var configurations = []Type{
10081008
ID: "",
10091009
Brief: "incorrect src folder case",
10101010
Description: "",
1011-
MessageTemplate: "Incorrect src folder case. This will cause the library to not be recognized on case-sensitive operating systems. See: https://arduino.github.io/arduino-cli/latest/library-specification/#library-root-folder",
1011+
MessageTemplate: "Incorrect src folder case: {{.}}. This will cause the library to not be recognized on case-sensitive operating systems. See: https://arduino.github.io/arduino-cli/latest/library-specification/#library-root-folder",
10121012
DisableModes: nil,
10131013
EnableModes: []checkmode.Type{checkmode.Default},
10141014
InfoModes: nil,
@@ -1098,7 +1098,7 @@ var configurations = []Type{
10981098
ID: "",
10991099
Brief: "incorrect src folder case",
11001100
Description: "",
1101-
MessageTemplate: "Incorrect src folder case. This will cause the source files under it to not be compiled on case-sensitive operating systems. See: https://arduino.github.io/arduino-cli/latest/sketch-specification/#src-subfolder",
1101+
MessageTemplate: "Incorrect src folder case: {{.}}. This will cause the source files under it to not be compiled on case-sensitive operating systems. See: https://arduino.github.io/arduino-cli/latest/sketch-specification/#src-subfolder",
11021102
DisableModes: nil,
11031103
EnableModes: []checkmode.Type{checkmode.Default},
11041104
InfoModes: nil,

0 commit comments

Comments
 (0)