return an error if map.renderStill returns a std::exception_ptr

store exception_ptr on NodeMap

add test for map.render returning an error
This commit is contained in:
Mike Morris
2015-05-20 13:06:32 -04:00
parent c439024f47
commit 16ec628d8e
4 changed files with 32 additions and 7 deletions

View File

@@ -50,6 +50,7 @@ private:
NodeFileSource &fs;
mbgl::Map map;
std::exception_ptr error;
std::unique_ptr<const mbgl::StillImage> image;
std::unique_ptr<NanCallback> callback;