[Tile-serving] [openstreetmap/osm2pgsql] Add fmt_error() function that uses fmt lib to format error message (PR #1868)

Jochen Topf notifications at github.com
Wed Jan 4 09:57:00 UTC 2023


This adds the fmt_error() function as a convenient wrapper that creates std::runtime_errors from a formatted error message.

See also #1859

I am not totally happy with the function name `fmt_error()`, because is looks a bit like the error is about formatting in some way, when it only means "format the error message using the `fmt` library". But I can't think of a better name.
You can view, comment on, or merge this pull request online at:

  https://github.com/openstreetmap/osm2pgsql/pull/1868

-- Commit Summary --

  * Add fmt_error() function that uses fmt lib to format error message

-- File Changes --

    M src/expire-tiles.cpp (6)
    M src/flex-lua-index.cpp (14)
    M src/flex-table-column.cpp (5)
    M src/flex-table.cpp (15)
    M src/flex-write.cpp (78)
    M src/format.hpp (9)
    M src/geom-transform.cpp (29)
    M src/input.cpp (33)
    M src/lua-utils.cpp (10)
    M src/options.cpp (11)
    M src/output-flex.cpp (75)
    M src/output.cpp (7)
    M src/pgsql-capabilities.cpp (12)
    M src/pgsql.cpp (23)
    M src/reprojection-generic-proj6.cpp (10)
    M src/reprojection.cpp (2)
    M src/table.cpp (7)
    M src/taginfo.cpp (12)
    M src/tagtransform-lua.cpp (35)
    M src/wkb.cpp (28)

-- Patch Links --

https://github.com/openstreetmap/osm2pgsql/pull/1868.patch
https://github.com/openstreetmap/osm2pgsql/pull/1868.diff

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/pull/1868
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/osm2pgsql/pull/1868 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20230104/ee110559/attachment.htm>


More information about the Tile-serving mailing list