From: Ingo Ruhnke Date: Wed, 27 Aug 2014 08:23:58 +0000 (+0200) Subject: Made Menu::get_item_by_id(int id) error message sligthly more useful X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=35fa1ef8cc5d73d7b6d0a13873e3eadf35d873f5;p=supertux.git Made Menu::get_item_by_id(int id) error message sligthly more useful --- diff --git a/src/gui/menu.cpp b/src/gui/menu.cpp index 1a636ee0a..fd253e9be 100644 --- a/src/gui/menu.cpp +++ b/src/gui/menu.cpp @@ -625,7 +625,7 @@ Menu::get_item_by_id(int id) } } - throw std::runtime_error("MenuItem not found"); + throw std::runtime_error("MenuItem not found: " + std::to_string(id)); } const MenuItem&