Prepend "Warning" to error description with code==COMPERR_WARNING
text = QObject::tr("COMPERR_ALGO_FAILED");
break;
case SMESH::COMPERR_WARNING:
- return comment ? QString(comment) : QObject::tr("COMPERR_UNKNOWN");
+ text = QObject::tr( (comment && strlen(comment)) ? "COMPERR_WARNING" : "COMPERR_UNKNOWN");
+ break;
default:
text = QString("#%1").arg( -errCode );
}
<source>COMPERR_STD_EXCEPTION</source>
<translation>std::exception</translation>
</message>
+ <message>
+ <source>COMPERR_WARNING</source>
+ <translation>Warning</translation>
+ </message>
<message>
<source>COMPERR_UNKNOWN</source>
<translation>Unknown error</translation>