mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Add reason string for internal reverts
This commit is contained in:
1 parent
e8eb1f2d14
commit
36928c7a35
49 files changed
+555
-131
No files matched your search
@@ -875,9 +875,9 @@ Allowed options)",
|
||||
serr() << "Invalid option for --" << g_strRevertStrings << ": " << revertStringsString << endl;
|
||||
return false;
|
||||
}
|
||||
if (*revertStrings != RevertStrings::Default && *revertStrings != RevertStrings::Strip)
|
||||
if (*revertStrings == RevertStrings::VerboseDebug)
|
||||
{
|
||||
serr() << "Only \"default\" and \"strip\" are implemented for --" << g_strRevertStrings << " for now." << endl;
|
||||
serr() << "Only \"default\", \"strip\" and \"debug\" are implemented for --" << g_strRevertStrings << " for now." << endl;
|
||||
return false;
|
||||
}
|
||||
m_revertStrings = *revertStrings;
|
||||
|
||||
Reference in new issue
Block a user