aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ShiftOS.Server/Program.cs5
1 files 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)