more exhaustive pattern match on Result exceptions