summaryrefslogtreecommitdiff
path: root/platform/node
diff options
context:
space:
mode:
authorDane Springmeyer <springmeyer@users.noreply.github.com>2018-06-29 22:17:29 -0700
committerGitHub <noreply@github.com>2018-06-29 22:17:29 -0700
commita70727245c6eeebaf32e1c12bfb7e978f18893ff (patch)
treef15714ff70465585666753405454cd824cf2ca45 /platform/node
parent647959a85327660a8d0b35da0b8a247820a36c15 (diff)
downloadqtlocation-mapboxgl-a70727245c6eeebaf32e1c12bfb7e978f18893ff.tar.gz
Change error message with invalid render usage (#12265)
* Change error message with invalid render usage This change disambiguates this error condition with a different error with the same error message at https://github.com/mapbox/mapbox-gl-native/blob/789baf4c1f252071bf58e689e050b34eb2656363/src/mbgl/map/map.cpp#L157-L160 * fix test expectation
Diffstat (limited to 'platform/node')
-rw-r--r--platform/node/src/node_map.cpp2
-rw-r--r--platform/node/test/js/map.test.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/platform/node/src/node_map.cpp b/platform/node/src/node_map.cpp
index 4d89077d64..328bff1d7b 100644
--- a/platform/node/src/node_map.cpp
+++ b/platform/node/src/node_map.cpp
@@ -398,7 +398,7 @@ void NodeMap::Render(const Nan::FunctionCallbackInfo<v8::Value>& info) {
}
if (nodeMap->req) {
- return Nan::ThrowError("Map is currently rendering an image");
+ return Nan::ThrowError("Map is currently processing a RenderRequest");
}
try {
diff --git a/platform/node/test/js/map.test.js b/platform/node/test/js/map.test.js
index ce22816ef2..2223e54aaa 100644
--- a/platform/node/test/js/map.test.js
+++ b/platform/node/test/js/map.test.js
@@ -532,7 +532,7 @@ test('Map', function(t) {
t.throws(function() {
map.render({}, function() {});
map.render({}, function() {});
- }, /Map is currently rendering an image/);
+ }, /Map is currently processing a RenderRequest/);
map.release();
t.end();