Encoder now has a way to check whether an error has occurred