Skip to content

Commit 26ae4d1

Browse files
committed
Don't throw exception if library is already installed
1 parent ada7b41 commit 26ae4d1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

arduino-core/src/cc/arduino/contributions/libraries/LibraryInstaller.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,10 @@ public void updateIndex() throws Exception {
9797
rescanLibraryIndex(progress);
9898
}
9999

100-
public void install(ContributedLibrary lib, ContributedLibrary replacedLib) throws Exception {
100+
public void install(ContributedLibrary lib, ContributedLibrary replacedLib) {
101101
if (lib.isInstalled()) {
102-
throw new Exception(_("Library is already installed!"));
102+
System.out.println(_("Library is already installed: \"" + lib.getName() + "\""));
103+
return;
103104
}
104105

105106
final MultiStepProgress progress = new MultiStepProgress(3);

0 commit comments

Comments
 (0)