Skip to content

Commit b294c2c

Browse files
author
jantje
committed
issue #393 delete json files when they fail to be parsed
1 parent c707e0e commit b294c2c

File tree

1 file changed

+1
-0
lines changed
  • it.baeyens.arduino.core/src/it/baeyens/arduino/managers

1 file changed

+1
-0
lines changed

it.baeyens.arduino.core/src/it/baeyens/arduino/managers/Manager.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,7 @@ static private void loadPackageIndex(String url, boolean forceDownload) {
240240
} catch (Exception e) {
241241
Common.log(new Status(IStatus.ERROR, Activator.getId(),
242242
"Unable to parse " + packageFile.getAbsolutePath(), e)); //$NON-NLS-1$
243+
packageFile.delete();// Delete the file so it stops damaging
243244
}
244245
}
245246
}

0 commit comments

Comments
 (0)