[node] Update changes in MapObserver::onDidFailLoadingMap

This commit is contained in:
Bruno de Oliveira Abinader
2017-03-15 16:07:58 +02:00
parent bfc7c2967c
commit 5e3308c5c0
3 changed files with 8 additions and 6 deletions

View File

@@ -42,8 +42,8 @@ static const char* releasedMessage() {
NodeBackend::NodeBackend()
: HeadlessBackend(sharedDisplay()) {}
void NodeBackend::onDidFailLoadingMap() {
throw std::runtime_error("Requires a map style to be a valid style JSON");
void NodeBackend::onDidFailLoadingMap(std::exception_ptr error) {
std::rethrow_exception(error);
}
void NodeMap::Init(v8::Local<v8::Object> target) {