Commit 866f7d40 authored by Geoff Simmons's avatar Geoff Simmons

Add docs for .errmsg().

parent c690f5f6
......@@ -295,7 +295,14 @@ Return the error message for any error condition determined the last
time the file was checked, or a message indicating that there was no
error.
XXX ...
Example::
import std;
if (rdr.error()) {
std.log("rdr error: " + rdr.errmsg());
call do_file_error_handling;
}
.. _xreader.size():
......
......@@ -269,7 +269,14 @@ Return the error message for any error condition determined the last
time the file was checked, or a message indicating that there was no
error.
XXX ...
Example::
import std;
if (rdr.error()) {
std.log("rdr error: " + rdr.errmsg());
call do_file_error_handling;
}
$Method BYTES .size()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment