diff options
author | Anders Svensson <[email protected]> | 2014-01-16 12:57:43 +0100 |
---|---|---|
committer | Anders Svensson <[email protected]> | 2014-01-16 13:06:44 +0100 |
commit | 3f79e7bd7e743ffd40b624caf680aef2bdb15dc7 (patch) | |
tree | 1ad2f8d6e6aa60c30e4f8b0cc08af49fe993553b /lib/diameter/doc/src/diameter_make.xml | |
parent | 17303e17116415e7758e96530814b0a6f3f9a93f (diff) | |
download | otp-3f79e7bd7e743ffd40b624caf680aef2bdb15dc7.tar.gz otp-3f79e7bd7e743ffd40b624caf680aef2bdb15dc7.tar.bz2 otp-3f79e7bd7e743ffd40b624caf680aef2bdb15dc7.zip |
Don't format diameter_make:codec/2 errors
Instead, add diameter_make:format_error/1 to allow the caller to format
if desired, which is what applications like compiler and yecc do. Use
this to check that the expected error is the one actually generated in
the compiler suite.
Diffstat (limited to 'lib/diameter/doc/src/diameter_make.xml')
-rw-r--r-- | lib/diameter/doc/src/diameter_make.xml | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/lib/diameter/doc/src/diameter_make.xml b/lib/diameter/doc/src/diameter_make.xml index 1c1eff6c6a..16ef49d4b2 100644 --- a/lib/diameter/doc/src/diameter_make.xml +++ b/lib/diameter/doc/src/diameter_make.xml @@ -16,7 +16,7 @@ <header> <copyright> <year>2012</year> -<year>2013</year> +<year>2014</year> <holder>Ericsson AB. All Rights Reserved.</holder> </copyright> <legalnotice> @@ -175,6 +175,10 @@ Note that a dictionary's <c>&dict_name;</c>, together with the The <c>&dict_name;</c> of a literal input dictionary defaults to <c>dictionary</c>.</p> +<p> +A returned error reason can be converted into a readable string using +&format_error;.</p> + </desc> </func> @@ -206,6 +210,18 @@ The return value is also a parsed dictionary.</p> </desc> </func> +<!-- ===================================================================== --> + +<func> +<name>format_error(Reason) -> string()</name> +<fsummary>Turn an error reason into a readable string.</fsummary> +<desc> + +<p> +Turn an error reason returned by &codec; into a readable string.</p> +</desc> +</func> + </funcs> <!-- ===================================================================== --> |