diff --git a/intl/en/messages.json b/intl/en/messages.json index 1d6ec978..8a5a2d41 100644 --- a/intl/en/messages.json +++ b/intl/en/messages.json @@ -8,25 +8,28 @@ "fca4d12faff1035d9d0438d73432571b": "Duplicate entry for {0}.{1}", "09483e03b91c8bd58732a74b3ef1ec13": "Invalid date: {0}", "0b16d3ffc42f91b4b9a4b3b50c41c838": "The order {0} is not valid", - "0e88a84c6bc2638fbcc5d3ea95181f99": "Unknown property: {0}", + "0ff31abb394afb555df162e74ff1a0a0": "{{id}} cannot be updated from {0} to {1} when {{forceId}} is set to true", "21095484501dbff31af6556fa6039182": "The {{offset/skip}} parameter {0} is not valid", + "2c5c8519721f749aab13c2f04f41d611": "The {0} property has invalid clause {1}: Expected precisely 2 values, received {2}", "416dfbb7b823f51c9f3800be81060b41": "No instance with {{id}} {0} found for {1}", "4e31b1edd10dadb724d83387de0b5062": "The {{limit}} parameter {0} is not valid", "5ec8efeb715a2c34b440f2d76e2cf87d": " {0}", + "614e3355647e4127c96256102dc63376": "The {0} property has invalid clause {1}: Expected a string or RegExp", "62a2d80c405b7fec5f547c448ab1b6ff": "The {{order}} {0} has invalid direction", - "63f503acabdc4c7588aab741b8466862": "The {0} property has invalid clause {1}", "67c2bf43b5281ab929617423ea8a6f3e": "The connector {0} does not support {{replaceById}} operation. This is not a bug in LoopBack. Please contact the authors of the connector, preferably via GitHub issues.", "6c3234937d69763fc7f6bcafccc59bbc": "{{Model::deleteById}} requires the {{id}} argument", "6eb6fd4fbd73394000bc25f5776fd20c": "{{Model::exists}} requires the {{id}} argument", "7bbbdece4eea90e42aa5c0bce295e503": "{{Model::findById}} requires the {{id}} argument", - "9da58ab4555ac50f4999883de6470d7d": "The {0} operator has invalid clauses {1}", "a829dee089c912e68c18920ba015400c": "WARNING: {{id}} property cannot be changed from {0} to {1} for model:{2} in {{'loaded'}} operation hook", "a984a076c59e451948b2bcf7a393d860": "WARNING: {{id}} property cannot be changed from {0} to {1} for model:{2} in {{'before save'}} operation hook", "baf2c8b0c5a574b8a894e9b6304fece1": "The where clause {0} is not an {{object}}", "db03083e9a768388fdbee865249ac67a": "Ignoring validation errors in {{updateOrCreate()}}:", + "dd63416d9b7d9fa4181e89efd619dfd8": "Value is not an {{array}} or {{object}} with sequential numeric indices", + "e39e0f5d52bfbf511e645d19ecadd2fa": "The {0} property has invalid clause {1}: {2}", "e4434de4bb8f5a3cd1d416e4d80d7e0b": "Unknown \"{0}\" {{id}} \"{1}\".", "e54f118a75e15e132f16b985274eb46d": "The query filter {0} is not an {{object}}", "f6e8c96c93b9c7687d6c172b3695e898": "{{id}} property ({0}) cannot be updated from {1} to {2}", + "fec8ebda24db46a9d040bf863765cc44": "The {0} operator has invalid clauses {1}: {2}", "0be2d39d225b1d8b2a0f92ad5c65c9ac": "No model specified for {{polymorphic}} {0}: {1}", "0c4eb8b6c2ff6e51d7e195eee346ced9": "Table '{0}' does not exist.", "2f4af31c144bbfab1bbf479866acd820": "\nWARNING: {{LoopBack}} connector \"{0}\" is not installed as any of the following modules:\n\n {1}\n\nTo fix, run:\n\n {{npm install {2} --save}}\n", @@ -48,6 +51,7 @@ "8091838319a5cc7d6a34af2f2a616ce9": "Property name should not be \"{{constructor}}\" in Model: {0}", "da02dd6c53d4148320eeb31718a7aebe": "Invalid type for property {0}", "da751a8a748adbde5b55fa83b707b4e2": "Property names containing dot(s) are not supported. Model: {0}, property: {1}", + "3864f9be10f27723074566d2b3893514": "Warning: Model {0}, {{strict mode: `throw`}} has been removed, please use {{`strict: true`}} instead, which returns{{`Validation Error`}} for unknown properties,", "881e4b0cb86ed59549248ee540a9fd10": "Property name \"{{constructor}}\" is not allowed in {0} data", "bdb11cc1c780c9ccac33c316cfdc9d82": "Type not defined for property {0}.{1}", "cd930369e86cdd222f7bd117c6f9fa94": "Unknown default value provider {0}", diff --git a/lib/dao.js b/lib/dao.js index 67e0d793..c454d758 100644 --- a/lib/dao.js +++ b/lib/dao.js @@ -3131,7 +3131,7 @@ function(data, options, cb) { var idName = idNames[i]; if (data[idName] !== undefined && !idEquals(data[idName], inst[idName])) { var err = new Error(g.f('{{id}} cannot be updated from ' + - '%s to %s when forceId is set to true', + '%s to %s when {{forceId}} is set to true', inst[idName], data[idName])); err.statusCode = 400; process.nextTick(function() {