Use Either instead of error