File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
arduino-core/src/cc/arduino/contributions/libraries Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 5454import java .util .List ;
5555import java .util .Optional ;
5656
57+ import static processing .app .I18n .format ;
5758import static processing .app .I18n .tr ;
5859
5960public class LibrariesIndexer {
@@ -203,7 +204,7 @@ private void scanLibrary(UserLibraryFolder folderDesc) throws IOException {
203204 LegacyUserLibrary lib = LegacyUserLibrary .create (folderDesc );
204205 String [] headers = BaseNoGui .headerListFromIncludePath (lib .getSrcFolder ());
205206 if (headers .length == 0 ) {
206- throw new IOException (lib .getSrcFolder (). getAbsolutePath ( ));
207+ throw new IOException (format ( tr ( "no headers files (.h) found in {0}" ), lib .getSrcFolder ()));
207208 }
208209 addToInstalledLibraries (lib );
209210 return ;
@@ -213,7 +214,7 @@ private void scanLibrary(UserLibraryFolder folderDesc) throws IOException {
213214 UserLibrary lib = UserLibrary .create (folderDesc );
214215 String [] headers = BaseNoGui .headerListFromIncludePath (lib .getSrcFolder ());
215216 if (headers .length == 0 ) {
216- throw new IOException (lib .getSrcFolder (). getAbsolutePath ( ));
217+ throw new IOException (format ( tr ( "no headers files (.h) found in {0}" ), lib .getSrcFolder ()));
217218 }
218219 addToInstalledLibraries (lib );
219220
You can’t perform that action at this time.
0 commit comments