Adds error method that raises on None, otherwise returns a Some