mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #12695 from ethereum/less-confusing-err
Make error message less confusing
This commit is contained in:
@@ -256,10 +256,9 @@ void ViewPureChecker::reportMutability(
|
||||
m_errorReporter.typeError(
|
||||
8961_error,
|
||||
_location,
|
||||
"Function declared as " +
|
||||
"Function cannot be declared as " +
|
||||
stateMutabilityToString(m_currentFunction->stateMutability()) +
|
||||
", but this expression (potentially) modifies the state and thus "
|
||||
"requires non-payable (the default) or payable."
|
||||
" because this expression (potentially) modifies the state."
|
||||
);
|
||||
m_errors = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user