aboutsummaryrefslogtreecommitdiffstats
path: root/docs/units-and-global-variables.rst
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2017-12-30 20:46:02 +0800
committerchriseth <chris@ethereum.org>2018-04-12 19:09:37 +0800
commit3da16b3e8af41a1d743a94d2e19822e82440a63d (patch)
tree4e4d36013f8ee7e87ab98ce6592d9f03e848196a /docs/units-and-global-variables.rst
parenta06249c98484f8ca3772b09f66bc68dd30c13c4d (diff)
downloaddexon-solidity-3da16b3e8af41a1d743a94d2e19822e82440a63d.tar
dexon-solidity-3da16b3e8af41a1d743a94d2e19822e82440a63d.tar.gz
dexon-solidity-3da16b3e8af41a1d743a94d2e19822e82440a63d.tar.bz2
dexon-solidity-3da16b3e8af41a1d743a94d2e19822e82440a63d.tar.lz
dexon-solidity-3da16b3e8af41a1d743a94d2e19822e82440a63d.tar.xz
dexon-solidity-3da16b3e8af41a1d743a94d2e19822e82440a63d.tar.zst
dexon-solidity-3da16b3e8af41a1d743a94d2e19822e82440a63d.zip
Documentation for revert with reason string.
Diffstat (limited to 'docs/units-and-global-variables.rst')
-rw-r--r--docs/units-and-global-variables.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/docs/units-and-global-variables.rst b/docs/units-and-global-variables.rst
index e7f41ed1..aad00ba2 100644
--- a/docs/units-and-global-variables.rst
+++ b/docs/units-and-global-variables.rst
@@ -101,6 +101,8 @@ Error Handling
throws if the condition is not met - to be used for errors in inputs or external components.
``revert()``:
abort execution and revert state changes
+``revert(string reason)``:
+ abort execution and revert state changes, providing an explanatory string
.. index:: keccak256, ripemd160, sha256, ecrecover, addmod, mulmod, cryptography,