Skip to content

Commit

Permalink
Improved messaging if build request fails (betaflight#3750)
Browse files Browse the repository at this point in the history
  • Loading branch information
blckmn authored Jan 13, 2024
1 parent 97a1b62 commit 370e834
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions locales/en/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -3421,6 +3421,9 @@
"firmwareFlasherCloudBuildFailTimeOut": {
"message": "timed out (please retry)"
},
"firmwareFlasherCloudBuildFailRequest": {
"message": "build request error (please check build configuration, e.g. custom defines)"
},
"firmwareFlasherCloudBuildFail": {
"message": "failed (please check log)"
},
Expand Down
5 changes: 4 additions & 1 deletion src/js/tabs/firmware_flasher.js
Original file line number Diff line number Diff line change
Expand Up @@ -926,7 +926,10 @@ firmware_flasher.initialize = function (callback) {
});
}, retrySeconds * 1000);
});
}, onLoadFailed);
}, () => {
updateStatus('FailRequest', '', 0, false);
onLoadFailed();
});
}

if (self.targetDetail) { // undefined while list is loading or while running offline
Expand Down

0 comments on commit 370e834

Please sign in to comment.