This is a bad practice to log and throw same error