mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-15 00:20:35 +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");
|
text = QObject::tr("COMPERR_ALGO_FAILED");
|
||||||
break;
|
break;
|
||||||
case SMESH::COMPERR_WARNING:
|
case SMESH::COMPERR_WARNING:
|
||||||
return comment ? QString(comment) : QObject::tr("COMPERR_UNKNOWN");
|
text = QObject::tr( (comment && strlen(comment)) ? "COMPERR_WARNING" : "COMPERR_UNKNOWN");
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
text = QString("#%1").arg( -errCode );
|
text = QString("#%1").arg( -errCode );
|
||||||
}
|
}
|
||||||
|
@ -123,6 +123,10 @@
|
|||||||
<source>COMPERR_STD_EXCEPTION</source>
|
<source>COMPERR_STD_EXCEPTION</source>
|
||||||
<translation>std::exception</translation>
|
<translation>std::exception</translation>
|
||||||
</message>
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>COMPERR_WARNING</source>
|
||||||
|
<translation>Warning</translation>
|
||||||
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>COMPERR_UNKNOWN</source>
|
<source>COMPERR_UNKNOWN</source>
|
||||||
<translation>Unknown error</translation>
|
<translation>Unknown error</translation>
|
||||||
|
Loading…
Reference in New Issue
Block a user