File tree Expand file tree Collapse file tree 3 files changed +13
-5
lines changed
arduino-ide-extension/src/browser/contributions Expand file tree Collapse file tree 3 files changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -222,6 +222,12 @@ export abstract class CoreServiceContribution extends SketchContribution {
222222 } catch { }
223223 }
224224 if ( message ) {
225+ if ( message . includes ( 'Missing FQBN (Fully Qualified Board Name)' ) ) {
226+ message = nls . localize (
227+ 'arduino/coreContribution/noBoardSelected' ,
228+ 'No board selected. Please select your Arduino board from the Tools > Board menu.'
229+ ) ;
230+ }
225231 const copyAction = nls . localize (
226232 'arduino/coreContribution/copyError' ,
227233 'Copy error messages'
Original file line number Diff line number Diff line change @@ -61,10 +61,11 @@ export class UploadSketch extends CoreServiceContribution {
6161 registry . registerCommand ( UploadSketch . Commands . UPLOAD_SKETCH , {
6262 execute : async ( ) => {
6363 const key = this . selectedFqbnAddress ( ) ;
64- if ( ! key ) {
65- return ;
66- }
67- if ( this . boardRequiresUserFields && ! this . cachedUserFields . has ( key ) ) {
64+ if (
65+ this . boardRequiresUserFields &&
66+ key &&
67+ ! this . cachedUserFields . has ( key )
68+ ) {
6869 // Deep clone the array of board fields to avoid editing the cached ones
6970 this . userFieldsDialog . value = (
7071 await this . boardsServiceProvider . selectedBoardUserFields ( )
Original file line number Diff line number Diff line change 132132 "replaceTitle" : " Replace"
133133 },
134134 "coreContribution" : {
135- "copyError" : " Copy error messages"
135+ "copyError" : " Copy error messages" ,
136+ "noBoardSelected" : " No board selected. Please select your Arduino board from the Tools > Board menu."
136137 },
137138 "daemon" : {
138139 "restart" : " Restart Daemon" ,
You can’t perform that action at this time.
0 commit comments