File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -39,10 +39,16 @@ namespace internal {
3939void refreshDisplayString (cModule *thisModule, const StringFormat::IResolver *thisModuleAsResolver)
4040{
4141 if (thisModule->hasPar (" displayStringTextFormat" )) {
42- auto displayStringTextFormat = thisModule->par (" displayStringTextFormat" ).stringValue ();
43- if (!opp_isempty (displayStringTextFormat)) {
44- auto text = StringFormat::formatString (displayStringTextFormat, thisModuleAsResolver);
45- thisModule->getDisplayString ().setTagArg (" t" , 0 , text.c_str ());
42+ try {
43+ auto displayStringTextFormat = thisModule->par (" displayStringTextFormat" ).stringValue ();
44+ if (!opp_isempty (displayStringTextFormat)) {
45+ auto text = StringFormat::formatString (displayStringTextFormat, thisModuleAsResolver);
46+ thisModule->getDisplayString ().setTagArg (" t" , 0 , text.c_str ());
47+ }
48+ }
49+ catch (cException& e) {
50+ e.prependMessage (" While processing displayStringTextFormat: " );
51+ throw ;
4652 }
4753 }
4854}
You can’t perform that action at this time.
0 commit comments