Added error message for missing case