From 18604c054acfe2d0137dbd9dd6a2c30a69c3fbdf Mon Sep 17 00:00:00 2001 From: Michael VanOverbeek Date: Wed, 15 Feb 2017 22:11:27 +0000 Subject: [PATCH] moar fixes n' stuff --- ShiftOS.Server/Program.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ShiftOS.Server/Program.cs b/ShiftOS.Server/Program.cs index 376f95f..0cae991 100644 --- a/ShiftOS.Server/Program.cs +++ b/ShiftOS.Server/Program.cs @@ -295,10 +295,11 @@ namespace ShiftOS.Server object result = null; try { - result = Convert.ChangeType(JsonConvert.DeserializeObject(msg.Contents), mAttrib.ExpectedType); + result = JsonConvert.DeserializeObject(msg.Contents, mAttrib.ExpectedType); } - catch + catch (Exception ex) { + Console.WriteLine(ex); result = null; } if (result == null)