error retrieval & the beginning of directory listing
added assertions for error strings
added assertions for error numbers