summaryrefslogtreecommitdiffhomepage
path: root/editor
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-03-19 00:03:12 +0100
committerStanislaw Halik <sthalik@misaki.pl>2023-03-19 00:03:46 +0100
commitf3f99d56ad6cd66e74e6958d46a12cc56f584984 (patch)
tree4206d13f3091f822d7ee3b34ced82163ed7f50cf /editor
parent4d9a82b720c8ce74b94f43f72ddd819ef21abbdf (diff)
move some deserialize path's asserts to soft asserts
Diffstat (limited to 'editor')
-rw-r--r--editor/tile-editor.cpp3
1 files changed, 2 insertions, 1 deletions
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 <Corrade/Containers/PairStl.h>
#include <Corrade/Utility/Path.h>
@@ -47,7 +48,7 @@ std::shared_ptr<tile_atlas> 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; }