mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Rename error type.
This commit is contained in:
parent
a957322fd7
commit
56f5d58850
@ -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);
|
||||||
|
@ -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";
|
||||||
|
@ -47,7 +47,7 @@ public:
|
|||||||
DocstringParsingError,
|
DocstringParsingError,
|
||||||
ParserError,
|
ParserError,
|
||||||
TypeError,
|
TypeError,
|
||||||
FormalError,
|
Why3TranslatorError,
|
||||||
Warning
|
Warning
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user