Also log more user-friendly error when failing to load controller for a
particular operation.
@@ -398,7 +398,12 @@ class Router(object):
kw[argument_name] = float(kw[argument_name])
# Call the controller
+ try:
func = op_resolver(endpoint['operationId'])
+ except Exception as e:
+ LOG.exception('Failed to load controller for operation "%s": %s' %
+ (endpoint['operationId'], str(e)))
+ raise e
try:
resp = func(**kw)
