Raise error when it failed