specifying type for brew error enum and adding appropriate values for cancellation and non-error conditions