mirror of
https://github.com/arduino/arduino-ide.git
synced 2025-07-14 14:56:33 +00:00
Workarond for arduino/arduino-cli#1262.
Signed-off-by: Akos Kitta <kittaakos@typefox.io>
This commit is contained in:
parent
9aff90b0af
commit
0d0ad9efae
@ -64,6 +64,11 @@ export class BoardsServiceImpl extends CoreClientAware implements BoardsService
|
||||
resolve(undefined);
|
||||
return;
|
||||
}
|
||||
// It's a hack to handle https://github.com/arduino/arduino-cli/issues/1262 gracefully.
|
||||
if (err.message.indexOf('unknown package') !== -1) {
|
||||
resolve(undefined);
|
||||
return;
|
||||
}
|
||||
reject(err);
|
||||
return;
|
||||
}
|
||||
|
@ -94,6 +94,13 @@ export class LibraryServiceImpl extends CoreClientAware implements LibraryServic
|
||||
resolve(undefined);
|
||||
return;
|
||||
}
|
||||
|
||||
// It's a hack to handle https://github.com/arduino/arduino-cli/issues/1262 gracefully.
|
||||
if (message.indexOf('unknown package') !== -1) {
|
||||
resolve(undefined);
|
||||
return;
|
||||
}
|
||||
|
||||
reject(error);
|
||||
return;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user