1
0
mirror of https://github.com/google/nomulus synced 2026-01-05 04:56:03 +00:00

Log the class names of unimplemented extensions before

throwing the generic user-visible error.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=132884249
This commit is contained in:
cgoldfeder
2016-09-12 09:49:00 -07:00
committed by Ben McIlwain
parent d7443f2eee
commit b9b2829f7c

View File

@@ -101,7 +101,10 @@ public abstract class LoggedInFlow extends Flow {
allowedTlds = registrar.getAllowedTlds();
}
initLoggedInFlow();
if (!difference(extensionClasses, getValidRequestExtensions()).isEmpty()) {
Set<Class<? extends CommandExtension>> unimplementedExtensions =
difference(extensionClasses, getValidRequestExtensions());
if (!unimplementedExtensions.isEmpty()) {
logger.infofmt("Unimplemented extensions: %s", unimplementedExtensions);
throw new UnimplementedExtensionException();
}
}