add human-readable error messages

This commit is contained in:
Konstantin Käfer
2014-04-15 11:45:26 -04:00
parent e9db888491
commit 8e442411b0
2 changed files with 7 additions and 1 deletions

View File

@@ -58,7 +58,7 @@ void TileData::request() {
tile->data.swap(res->body);
tile->parse();
} else {
fprintf(stderr, "tile loading failed (%s): %d\n", url.c_str(), res->code);
fprintf(stderr, "[%s] tile loading failed: %d, %s\n", url.c_str(), res->code, res->error_message.c_str());
}
}, []() {
platform::restart();