]> git.saurik.com Git - wxWidgets.git/blobdiff - src/xrc/xh_choicbk.cpp
better native types for carbon
[wxWidgets.git] / src / xrc / xh_choicbk.cpp
index 5b8aff619e41431d1c2a4ecc27b5a66048b1d12c..4b8390db17befba57f00f344f3b39015504a8989 100644 (file)
@@ -86,12 +86,14 @@ wxObject *wxChoicebookXmlHandler::DoCreateResource()
                 }
             }
             else
-                wxLogError(wxT("Error in resource."));
+            {
+                ReportError(n, "choicebookpage child must be a window");
+            }
             return wnd;
         }
         else
         {
-            wxLogError(wxT("Error in resource: no control within choicebook's <page> tag."));
+            ReportError("choicebookpage must have a window child");
             return NULL;
         }
     }