report more detail on _cat.info() error

This commit is contained in:
David Rose 2006-07-31 20:22:52 +00:00
parent 87c7e59646
commit 331d060a8a

View File

@ -44,7 +44,10 @@ init() {
template<class GetCategory>
INLINE NotifyCategory *NotifyCategoryProxy<GetCategory>::
get_unsafe_ptr() {
nassertr(_ptr != (NotifyCategory *)NULL, init());
nassertd(_ptr != (NotifyCategory *)NULL) {
init();
nout << "Uninitialized notify proxy: " << _ptr->get_fullname() << "\n";
}
return _ptr;
}