b142eaa Clean up error message and return codes

Authored and Committed by npmccallum 6 years ago
    Clean up error message and return codes
    
    Update documentation to match the new behavior.
    
        
file modified
+118 -15
file modified
+97 -30
file modified
+75 -60