Skip to content

Commit 928e8eb

Browse files
author
jantje
committed
#664 added the filename and made this a error not a warning.
1 parent 9645d8b commit 928e8eb

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

io.sloeber.core/src/io/sloeber/core/managers/Manager.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,10 +264,11 @@ static public List<PackageIndex> getPackageIndices() {
264264
}
265265

266266
private static void loadLibraryIndex(boolean download) {
267+
File librariesFile = null;
267268
try {
268269
URL librariesUrl = new URL(Defaults.LIBRARIES_URL);
269270
String localFileName = Paths.get(librariesUrl.getPath()).getFileName().toString();
270-
File librariesFile = ConfigurationPreferences.getInstallationPath().append(localFileName).toFile();
271+
librariesFile = ConfigurationPreferences.getInstallationPath().append(localFileName).toFile();
271272
if (!librariesFile.exists() || download) {
272273
librariesFile.getParentFile().mkdirs();
273274
myCopy(librariesUrl, librariesFile);
@@ -280,7 +281,8 @@ private static void loadLibraryIndex(boolean download) {
280281
}
281282
}
282283
} catch (IOException e) {
283-
Common.log(new Status(IStatus.WARNING, Activator.getId(), "Failed to load library index", e)); //$NON-NLS-1$
284+
Common.log(
285+
new Status(IStatus.ERROR, Activator.getId(), "Failed to load library index: " + librariesFile, e)); //$NON-NLS-1$
284286
}
285287

286288
}

0 commit comments

Comments
 (0)