server exceptions are formatted much nicer in the ui.

This commit is contained in:
kay.one 2013-02-14 22:46:42 -08:00
commit 951e083756
6 changed files with 32 additions and 20 deletions

View file

@ -12,7 +12,7 @@ namespace NzbDrone.Api.Extentions
{
DateTimeZoneHandling = DateTimeZoneHandling.Utc,
NullValueHandling = NullValueHandling.Ignore,
Formatting = Formatting.None,
Formatting = Formatting.Indented,
DefaultValueHandling = DefaultValueHandling.IgnoreAndPopulate
};
@ -20,7 +20,7 @@ namespace NzbDrone.Api.Extentions
{
DateTimeZoneHandling = Settings.DateTimeZoneHandling,
NullValueHandling = NullValueHandling.Ignore,
Formatting = Formatting.None,
Formatting = Formatting.Indented,
DefaultValueHandling = DefaultValueHandling.IgnoreAndPopulate,
ContractResolver = new CamelCasePropertyNamesContractResolver()
};