File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
arduino-ide-extension/src/browser/widgets/component-list Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ import {
1313} from '../../../common/protocol/installable' ;
1414import { ArduinoComponent } from '../../../common/protocol/arduino-component' ;
1515import { SearchBar } from './search-bar' ;
16- import { ListWidget } from './list-widget' ;
16+ import { ListWidget , UserAbortError } from './list-widget' ;
1717import { ComponentList } from './component-list' ;
1818import { ListItemRenderer } from './list-item-renderer' ;
1919import {
@@ -148,6 +148,11 @@ export class FilterableListContainer<
148148 try {
149149 await install ( { item, progressId, version } ) ;
150150 } catch ( err ) {
151+ if ( err instanceof UserAbortError ) {
152+ // Do not toast an error message on user abort.
153+ // https://github.com/arduino/arduino-ide/issues/2063
154+ return ;
155+ }
151156 const message = LibraryPackage . is ( item ) // TODO: this dispatch does not belong here
152157 ? libraryInstallFailed ( name , version )
153158 : platformInstallFailed ( name , version ) ;
You can’t perform that action at this time.
0 commit comments