From f3f99d56ad6cd66e74e6958d46a12cc56f584984 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sun, 19 Mar 2023 00:03:12 +0100 Subject: move some deserialize path's asserts to soft asserts --- editor/tile-editor.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'editor') diff --git a/editor/tile-editor.cpp b/editor/tile-editor.cpp index 4de40ab6..68fc0930 100644 --- a/editor/tile-editor.cpp +++ b/editor/tile-editor.cpp @@ -4,6 +4,7 @@ #include "keys.hpp" #include "loader/loader.hpp" #include "random.hpp" +#include "compat/exception.hpp" #include #include @@ -47,7 +48,7 @@ std::shared_ptr tile_editor::atlas(StringView str) if (auto ptr = maybe_atlas(str)) return ptr; else - fm_abort("no such atlas: %s", str.cbegin()); + fm_throw("no such atlas: {}"_cf, str); } StringView tile_editor::name() const noexcept { return _name; } -- cgit v1.2.3