Skip to content

Commit

Permalink
gui: Demangle type name when printing an warning.
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Costa <[email protected]>
  • Loading branch information
titan73 committed Aug 19, 2024
1 parent e2d31e1 commit 11aeae2
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/gui/src/gui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -287,10 +287,11 @@ Selected Gui::makeSelected(const std::any& object)
if (it != descriptors_.end()) {
return it->second->makeSelected(object);
}
logger_->warn(utl::GUI,
33,
"No descriptor is registered for {}.",
object.type().name());
logger_->warn(
utl::GUI,
33,
"No descriptor is registered for type {}.",
abi::__cxa_demangle(object.type().name(), nullptr, nullptr, nullptr));
return Selected(); // FIXME: null descriptor
}

Expand Down

0 comments on commit 11aeae2

Please sign in to comment.