summaryrefslogtreecommitdiffhomepage
path: root/editor
diff options
context:
space:
mode:
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; }