0022172: [CEA 790] create the groups corresponding to domains

Prepend "Warning" to error description with code==COMPERR_WARNING
This commit is contained in:
eap 2013-05-24 11:49:50 +00:00
parent 10a6101340
commit 7b5176ec4d
2 changed files with 6 additions and 1 deletions

View File

@ -356,7 +356,8 @@ namespace SMESH
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 );
}

View File

@ -123,6 +123,10 @@
<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>