I'm returning error to the main function to be logged.