aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.Web/Controllers/TangoController.cs
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2019-12-05 13:01:59 +0200
committerRoy Ben-Shabat <Roy@Twine-s.com>2019-12-05 13:01:59 +0200
commitb8de846c395932551ce3841ea01b81bf4daa9c9e (patch)
treefc8f0a66c37602f3aa34fa9fddc7a50d9a01072a /Software/Visual_Studio/Tango.Web/Controllers/TangoController.cs
parentcd467ed8a6afec8dcf50d8dc71c75d9d445f7489 (diff)
downloadTango-b8de846c395932551ce3841ea01b81bf4daa9c9e.tar.gz
Tango-b8de846c395932551ce3841ea01b81bf4daa9c9e.zip
Added packages view to PPC technician.
Diffstat (limited to 'Software/Visual_Studio/Tango.Web/Controllers/TangoController.cs')
-rw-r--r--Software/Visual_Studio/Tango.Web/Controllers/TangoController.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/Software/Visual_Studio/Tango.Web/Controllers/TangoController.cs b/Software/Visual_Studio/Tango.Web/Controllers/TangoController.cs
index 28637d97c..d82fcb5f2 100644
--- a/Software/Visual_Studio/Tango.Web/Controllers/TangoController.cs
+++ b/Software/Visual_Studio/Tango.Web/Controllers/TangoController.cs
@@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
+using System.IO;
using System.Linq;
using System.Net;
using System.Net.Http;
@@ -60,7 +61,7 @@ namespace Tango.Web.Controllers
HttpStatusCode code = HttpStatusCode.InternalServerError;
- if (ex is ArgumentException)
+ if (ex is ArgumentException || ex is InvalidDataException)
{
code = HttpStatusCode.BadRequest;
}