Your `result` is lacking an `otherwise` clause.