Skip to content

Commit d43690d

Browse files
author
jantje
committed
change a exception to a error
1 parent 4a2b9b6 commit d43690d

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

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

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
import org.eclipse.core.runtime.Status;
2929

3030
import io.sloeber.core.Activator;
31+
import io.sloeber.core.common.Common;
3132
import io.sloeber.core.common.ConfigurationPreferences;
3233
import io.sloeber.core.common.Const;
3334

@@ -96,14 +97,14 @@ public String getSize() {
9697
return this.size;
9798
}
9899

99-
public List<Board> getBoards() throws CoreException {
100+
public List<Board> getBoards() {
100101
if (isInstalled() && this.boardsFile == null) {
101102
Properties boardProps = new Properties();
102103
try (Reader reader = new FileReader(getBoardsFile())) {
103104
boardProps.load(reader);
104105
} catch (IOException e) {
105-
throw new CoreException(
106-
new Status(IStatus.ERROR, Activator.getId(), Messages.Platform_loading_boards, e));
106+
Common.log(new Status(IStatus.ERROR, Activator.getId(), Messages.Platform_loading_boards, e));
107+
return this.boards;
107108
}
108109

109110
this.boardsFile = new HierarchicalProperties(boardProps);
@@ -120,7 +121,7 @@ public List<Board> getBoards() throws CoreException {
120121
return this.boards;
121122
}
122123

123-
public Board getBoard(String boardName) throws CoreException {
124+
public Board getBoard(String boardName) {
124125
for (Board board : getBoards()) {
125126
if (boardName.equals(board.getName())) {
126127
return board;

0 commit comments

Comments
 (0)