mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-27 09:50:34 +05:00
0022172: [CEA 790] create the groups corresponding to domains
Prepend "Warning" to error description with code==COMPERR_WARNING
This commit is contained in:
parent
10a6101340
commit
7b5176ec4d
@ -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 );
|
||||
}
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user