forked from loafle/openapi-generator-original
NancyFx:
- Details exception for error of dynamic value of parameter
This commit is contained in:
parent
0996f8c930
commit
d201d6331c
@ -93,6 +93,11 @@ namespace {{packageName}}.{{packageContext}}.Utils
|
|||||||
"Expected type: '{2}' is not supported",
|
"Expected type: '{2}' is not supported",
|
||||||
name, value, typeof(TValue)));
|
name, value, typeof(TValue)));
|
||||||
}
|
}
|
||||||
|
catch (Exception e)
|
||||||
|
{
|
||||||
|
throw new InvalidOperationException(string.Format("Could not get '{0}' value of '{1}' type dynamicly",
|
||||||
|
name, typeof(TValue)), e);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private static IDictionary<Type, Func<Parameter, object>> CreateParsers()
|
private static IDictionary<Type, Func<Parameter, object>> CreateParsers()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user