Added in an effect if an error occurs