improve listbox model_guard exception information
This commit is contained in:
parent
2853c652e5
commit
12843da679
@ -535,7 +535,7 @@ namespace nana
|
||||
throw std::invalid_argument("invalid listbox model container type");
|
||||
|
||||
if (nullptr == p->pointer())
|
||||
throw std::runtime_error("the modal is immutable");
|
||||
throw std::runtime_error("the modal is immutable, please declare model_guard with const");
|
||||
|
||||
return *static_cast<stlcontainer*>(p->pointer());
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user