summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorjoe <joe@61a7d7f5-40b7-0310-9c16-bb0ea8cb1845>2007-07-03 09:14:52 +0000
committerjoe <joe@61a7d7f5-40b7-0310-9c16-bb0ea8cb1845>2007-07-03 09:14:52 +0000
commitf6a80d9f8f330924078ea0d48d41066d0810f983 (patch)
treea159ca2054d2dd8105cab627f0d41057d547308e /doc
parentc341e6f03a5489797ac1db5f5309bd017afafb5c (diff)
downloadneon-f6a80d9f8f330924078ea0d48d41066d0810f983.tar.gz
* doc/ref/err.xml: Update ne_get_error docs.
git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1179 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
Diffstat (limited to 'doc')
-rw-r--r--doc/ref/err.xml26
1 files changed, 20 insertions, 6 deletions
diff --git a/doc/ref/err.xml b/doc/ref/err.xml
index 50551b5..22dd510 100644
--- a/doc/ref/err.xml
+++ b/doc/ref/err.xml
@@ -40,17 +40,31 @@
human-readable error information associated with any errors which
occur whilst using the HTTP session.</para>
- <para>The <function>ne_get_error</function> function returns the current
-session error string. This string persists only until it is changed by a
-subsequent operation on the session.</para>
+ <para>The <function>ne_get_error</function> function returns
+ the current session error string. This string persists only
+ until it is changed by a subsequent operation on the session.
+ If localisation was enabled at build time, and if necessary
+ enabled at run-time if necessary using <xref
+ linkend="ne_i18n_init"/>, the returned string may have been
+ translated into the user's current locale.</para>
- <para>The <function>ne_set_error</function> function can be
-used to set a new session error string, using a
-<function>printf</function>-style format string interface.</para>
+ <para>The <function>ne_set_error</function> function can be
+ used to set a new session error string, using a
+ <function>printf</function>-style format string
+ interface.</para>
</refsect1>
<refsect1>
+ <title>Return value</title>
+
+ <para><function>ne_set_error</function> returns a constant
+ &nul;-terminated string. In the default English locale, the
+ returned string will <emphasis>not</emphasis> have a
+ terminating <quote>.</quote> period character.</para>
+ </refsect1>
+
+ <refsect1>
<title>Examples</title>
<para>Retrieve the current error string:</para>
<programlisting>&egsess;