@@ -71,7 +71,7 @@ public class IndexAction implements WsAction { | |||
} | |||
String localeParam = request.mandatoryParam(LOCALE_PARAM); | |||
Locale locale = Locale.forLanguageTag(localeParam); | |||
checkArgument(!locale.getISO3Language().isEmpty(), "'%s' cannot be parsed as a BCP47 language tag", localeParam); | |||
checkArgument(!locale.getISO3Language().isEmpty(), "Locale cannot be parsed as a BCP47 language tag"); | |||
try (JsonWriter json = response.newJsonWriter()) { | |||
json.beginObject(); |
@@ -134,7 +134,7 @@ public class IndexActionTest { | |||
when(i18n.getEffectiveLocale(UK)).thenReturn(UK); | |||
expectedException.expect(IllegalArgumentException.class); | |||
expectedException.expectMessage("'en_GB' cannot be parsed as a BCP47 language tag"); | |||
expectedException.expectMessage("Locale cannot be parsed as a BCP47 language tag"); | |||
call("en_GB", null); | |||
} | |||