Allow error to be passed to UI