Added error message for edge case