diff options
Diffstat (limited to 'bin/offline.cpp')
-rw-r--r-- | bin/offline.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/offline.cpp b/bin/offline.cpp index 0d0fe57281..398f8427ee 100644 --- a/bin/offline.cpp +++ b/bin/offline.cpp @@ -137,7 +137,7 @@ int main(int argc, char *argv[]) { std::string json = readFile(geometryValue.Get()); auto geometry = parseGeometry(json); return OfflineRegionDefinition{ OfflineGeometryRegionDefinition(style, geometry, minZoom, maxZoom, pixelRatio) }; - } catch(std::runtime_error e) { + } catch(const std::runtime_error& e) { std::cerr << "Could not parse geojson file " << geometryValue.Get() << ": " << e.what() << std::endl; exit(1); } |