From 35fa1ef8cc5d73d7b6d0a13873e3eadf35d873f5 Mon Sep 17 00:00:00 2001 From: Ingo Ruhnke Date: Wed, 27 Aug 2014 10:23:58 +0200 Subject: [PATCH] Made Menu::get_item_by_id(int id) error message sligthly more useful --- src/gui/menu.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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& -- 2.11.0