Fix for #7

Error logging has been updated to properly reflect the error given.