Revert "Update error documentation."

This reverts commit 446372d62a36dfe2ca8095e183fe6dba9811057e.
Switch back to string for error message.