Improve GUIInventoryMenu error messages more
authorPerttu Ahola <celeron55@gmail.com>
Fri, 1 Jun 2012 16:50:00 +0000 (19:50 +0300)
committerPerttu Ahola <celeron55@gmail.com>
Sun, 3 Jun 2012 19:31:00 +0000 (22:31 +0300)
src/guiInventoryMenu.cpp

index c7cff329e5c4d1dbd6ab84686df06d8abbf4e9a5..823addd1b91c56b58b3375d4ae4fc75bc0fc0c8b 100644 (file)
@@ -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{