diff --git a/src/cpp/project/pathfinder/src/cmd.cpp b/src/cpp/project/pathfinder/src/cmd.cpp index 0e0c81a3..7c2a265a 100644 --- a/src/cpp/project/pathfinder/src/cmd.cpp +++ b/src/cpp/project/pathfinder/src/cmd.cpp @@ -272,12 +272,9 @@ PAF_CMD_NORETURN void paf::jump::execute(const lyra::group& group) auto db = db::get_db(db_type::directory); auto dir = db.try_get_mark(*m_keycode); - if (!dir) - goto err; - + xph::die_if(!dir, "keycode [", *m_keycode, "] not found in database"); std::cout << *dir << '\n'; -err: PAF_CMD_EXIT(); }