Skip to content

Commit

Permalink
add/fix missing no query error string
Browse files Browse the repository at this point in the history
  • Loading branch information
mblackstock committed Jan 14, 2021
1 parent 386851c commit d888153
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion influxdb.js
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ module.exports = function (RED) {
node.on("input", function (msg, send, done) {
var query = msg.hasOwnProperty('query') ? msg.query : node.query;
if (!query) {
return done(RED._("influxdb18.errors.noquery"));
return done(RED._("influxdb.errors.noquery"));
}
var output = [];
node.client.queryRows(query, {
Expand Down
3 changes: 2 additions & 1 deletion locales/en-US/influxdb.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
"errors":{
"nomeasurement":"No measurement specified",
"missingconfig":"Configuration missing",
"invalidconfig":"Configuration invalid"
"invalidconfig":"Configuration invalid",
"noquery":"No query"
},
"tip": {
"measurement": "<b> Tip:</b> If no measurement is specified, ensure <b>msg.measurement</b> contains the measurement name.",
Expand Down
3 changes: 2 additions & 1 deletion locales/es-ES/influxdb.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
"errors":{
"nomeasurement":"No se ha especificado una medición",
"missingconfig":"Configuración incompleta",
"invalidconfig":"Configuration no válida"
"invalidconfig":"Configuration no válida",
"noquery":"No query"
},
"tip": {
"measurement": "<b> Consejo:</b> Si no se especifica una medición, asegúrate de que <b>msg.measurement</b> contiene el nombre de la medición.",
Expand Down

0 comments on commit d888153

Please sign in to comment.