Node platform improvements (#891)

This commit is contained in:
tdcosta100
2023-03-09 04:27:14 +00:00
committed by GitHub
parent 9a3afedb25
commit 9766f6fcc2
5 changed files with 212 additions and 14 deletions

View File

@@ -173,6 +173,8 @@ var map = new mbgl.Map({
response.data = body;
callback(null, response);
} else if (res.statusCode == 204) {
callback();
} else {
callback(new Error(JSON.parse(body).message));
}