Add error directive documentation