File tree 1 file changed +3
-2
lines changed
arduino-core/src/cc/arduino/contributions/libraries
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 54
54
import java .util .List ;
55
55
import java .util .Optional ;
56
56
57
+ import static processing .app .I18n .format ;
57
58
import static processing .app .I18n .tr ;
58
59
59
60
public class LibrariesIndexer {
@@ -203,7 +204,7 @@ private void scanLibrary(UserLibraryFolder folderDesc) throws IOException {
203
204
LegacyUserLibrary lib = LegacyUserLibrary .create (folderDesc );
204
205
String [] headers = BaseNoGui .headerListFromIncludePath (lib .getSrcFolder ());
205
206
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 ()));
207
208
}
208
209
addToInstalledLibraries (lib );
209
210
return ;
@@ -213,7 +214,7 @@ private void scanLibrary(UserLibraryFolder folderDesc) throws IOException {
213
214
UserLibrary lib = UserLibrary .create (folderDesc );
214
215
String [] headers = BaseNoGui .headerListFromIncludePath (lib .getSrcFolder ());
215
216
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 ()));
217
218
}
218
219
addToInstalledLibraries (lib );
219
220
You can’t perform that action at this time.
0 commit comments