Rename error type.

This commit is contained in:
chriseth 2015-10-27 17:45:58 +01:00
parent a957322fd7
commit 56f5d58850
3 changed files with 4 additions and 4 deletions

View File

@ -46,7 +46,7 @@ bool Why3Translator::process(SourceUnit const& _source)
void Why3Translator::error(ASTNode const& _node, string const& _description) void Why3Translator::error(ASTNode const& _node, string const& _description)
{ {
auto err = make_shared<Error>(Error::Type::FormalError); auto err = make_shared<Error>(Error::Type::Why3TranslatorError);
*err << *err <<
errinfo_sourceLocation(_node.location()) << errinfo_sourceLocation(_node.location()) <<
errinfo_comment(_description); errinfo_comment(_description);

View File

@ -42,8 +42,8 @@ Error::Error(Type _type): m_type(_type)
case Type::TypeError: case Type::TypeError:
m_typeName = "Type Error"; m_typeName = "Type Error";
break; break;
case Type::FormalError: case Type::Why3TranslatorError:
m_typeName = "Formal Error"; m_typeName = "Why3 Translator Error";
break; break;
case Type::Warning: case Type::Warning:
m_typeName = "Warning"; m_typeName = "Warning";

View File

@ -47,7 +47,7 @@ public:
DocstringParsingError, DocstringParsingError,
ParserError, ParserError,
TypeError, TypeError,
FormalError, Why3TranslatorError,
Warning Warning
}; };