aboutsummaryrefslogtreecommitdiff
path: root/Timeline/Controllers
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-03-16 19:07:13 +0800
committercrupest <crupest@outlook.com>2020-03-16 19:07:13 +0800
commitfc0521d81aa2293b94ea40b79ec0df80966c0278 (patch)
tree07d96d3ab8ca909019cbb1225d533fe4aa2a57ac /Timeline/Controllers
parent067ef1edcb4409feda25a9356d49b146a9fd884b (diff)
downloadtimeline-fc0521d81aa2293b94ea40b79ec0df80966c0278.tar.gz
timeline-fc0521d81aa2293b94ea40b79ec0df80966c0278.tar.bz2
timeline-fc0521d81aa2293b94ea40b79ec0df80966c0278.zip
Hotfix a bug in post data.
Diffstat (limited to 'Timeline/Controllers')
-rw-r--r--Timeline/Controllers/TimelineController.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Timeline/Controllers/TimelineController.cs b/Timeline/Controllers/TimelineController.cs
index f1781ff3..5b894e26 100644
--- a/Timeline/Controllers/TimelineController.cs
+++ b/Timeline/Controllers/TimelineController.cs
@@ -134,7 +134,7 @@ namespace Timeline.Controllers
{
return NotFound(ErrorResponse.TimelineController.PostNotExist());
}
- catch (InvalidOperationException)
+ catch (BadPostTypeException)
{
return BadRequest(ErrorResponse.TimelineController.PostNoData());
}