Fix from review.

10.3.x-maintenance
Michael Keller 2018-05-04 20:37:08 +12:00
parent 02e0d75442
commit a3f791fcac
3 changed files with 8 additions and 3 deletions

View File

@ -6,8 +6,8 @@
"message": "Betaflight Configurator",
"description": "Title of the application window, usually not translated"
},
"errorTitle": {
"message": "Error"
"error": {
"message": "Error: {{errorMessage}}"
},
"warningTitle": {
"message": "Warning"

5
package-lock.json generated
View File

@ -4254,6 +4254,11 @@
"integrity": "sha1-bUUk6LlV+V1PW1iFHOId1y+06VI=",
"dev": true
},
"lru_map": {
"version": "0.3.3",
"resolved": "http://npm.chc.tlocal/lru_map/-/lru_map-0.3.3.tgz",
"integrity": "sha1-tcg1G5Rky9dQM1p5ZQoOwOVhGN0="
},
"make-iterator": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/make-iterator/-/make-iterator-1.0.0.tgz",

View File

@ -464,7 +464,7 @@ TABS.onboard_logging.initialize = function (callback) {
fileEntry.createWriter(function (fileWriter) {
fileWriter.onerror = function (e) {
GUI.log('<strong><span class="message-negative">' + i18n.getMessage('errorTitle') + ': ' + e.target.error.message + '</span class="message-negative></strong>');
GUI.log('<strong><span class="message-negative">' + i18n.getMessage('error', { errorMessage: e.target.error.message }) + '</span class="message-negative></strong>');
console.error(e);