fix #7

Added login for errors