mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-16 11:21:18 +03:00
Added warning message in case sketch contains invalid file name. Fixes #1390
This commit is contained in:
@ -187,6 +187,8 @@ public class Sketch {
|
|||||||
if (Sketch.isSanitaryName(base)) {
|
if (Sketch.isSanitaryName(base)) {
|
||||||
code[codeCount++] =
|
code[codeCount++] =
|
||||||
new SketchCode(new File(folder, filename), extension);
|
new SketchCode(new File(folder, filename), extension);
|
||||||
|
} else {
|
||||||
|
editor.console.message(I18n.format("File name {0} is invalid: ignored", filename), true, false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user