Renamed UnexpectedEOF as InvalidFile and
added UnsupportedFormat and ErrorNotTriangularFace (by Laurent Saboret)
This commit is contained in:
parent
f7e9d994ae
commit
99735eeb1e
|
@ -24,6 +24,9 @@
|
|||
History
|
||||
|
||||
$Log: not supported by cvs2svn $
|
||||
Revision 1.11 2006/01/30 15:02:50 cignoni
|
||||
Added mask filling in open
|
||||
|
||||
Revision 1.10 2006/01/10 13:20:42 cignoni
|
||||
Changed ply::PlyMask to io::Mask
|
||||
|
||||
|
@ -94,12 +97,13 @@ namespace vcg
|
|||
*/
|
||||
static const char* ErrorMsg(int message_code)
|
||||
{
|
||||
static const char* error_msg[3] =
|
||||
static const char* error_msg[] =
|
||||
{
|
||||
"No errors", "Can't open file", "Premature End of file",
|
||||
"No errors", "Can't open file", "Invalid file",
|
||||
"Unsupported format", "Face with more than 3 vertices"
|
||||
};
|
||||
|
||||
if(message_code>2 || message_code<0)
|
||||
if(message_code>4 || message_code<0)
|
||||
return "Unknown error";
|
||||
else
|
||||
return error_msg[message_code];
|
||||
|
|
Loading…
Reference in New Issue