Ooops, had the answer checking for errors reversed, fixed that.