summaryrefslogtreecommitdiff
path: root/src/mbgl/map/tile_data.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mbgl/map/tile_data.hpp')
-rw-r--r--src/mbgl/map/tile_data.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mbgl/map/tile_data.hpp b/src/mbgl/map/tile_data.hpp
index 2bb11054a6..e31cced964 100644
--- a/src/mbgl/map/tile_data.hpp
+++ b/src/mbgl/map/tile_data.hpp
@@ -88,6 +88,10 @@ public:
return state;
}
+ bool hasError() const {
+ return error.operator bool();
+ }
+
std::exception_ptr getError() const {
return error;
}