diff options
author | Perttu Ahola <celeron55@gmail.com> | 2012-06-01 19:50:00 +0300 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2012-06-03 22:31:00 +0300 |
commit | 45f32838b910abb6bf106ee043a4890a3325c8e3 (patch) | |
tree | ffb0eca5c0b265407ee4f59fd6b84d90425e79d2 /src | |
parent | 7d6e80a423f75aa15d95233852979713d9c99625 (diff) | |
download | minetest-45f32838b910abb6bf106ee043a4890a3325c8e3.tar.gz minetest-45f32838b910abb6bf106ee043a4890a3325c8e3.tar.bz2 minetest-45f32838b910abb6bf106ee043a4890a3325c8e3.zip |
Improve GUIInventoryMenu error messages more
Diffstat (limited to 'src')
-rw-r--r-- | src/guiInventoryMenu.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/guiInventoryMenu.cpp b/src/guiInventoryMenu.cpp index c7cff329e..823addd1b 100644 --- a/src/guiInventoryMenu.cpp +++ b/src/guiInventoryMenu.cpp @@ -532,12 +532,12 @@ bool GUIInventoryMenu::OnEvent(const SEvent& event) InventoryList *list = inv_s->getList(s.listname); if(list == NULL){ - errorstream<<"InventoryMenu: The selected inventory list " - <<"does not exist"<<std::endl; + errorstream<<"InventoryMenu: The selected inventory list \"" + <<s.listname<<"\" does not exist"<<std::endl; s.i = -1; // make it invalid again } else if((u32)s.i >= list->getSize()){ - errorstream<<"InventoryMenu: The selected inventory list " - <<"is too small (i="<<s.i<<", size=" + errorstream<<"InventoryMenu: The selected inventory list \"" + <<s.listname<<"\" is too small (i="<<s.i<<", size=" <<list->getSize()<<")"<<std::endl; s.i = -1; // make it invalid again } else{ |