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
commit7e393559d2883a37b1be0c82cccc06bc97c3d102 (patch)
tree07d96d3ab8ca909019cbb1225d533fe4aa2a57ac /Timeline/Controllers
parentb20c488a9b02807cfa117b10dd8906271af03614 (diff)
downloadtimeline-7e393559d2883a37b1be0c82cccc06bc97c3d102.tar.gz
timeline-7e393559d2883a37b1be0c82cccc06bc97c3d102.tar.bz2
timeline-7e393559d2883a37b1be0c82cccc06bc97c3d102.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());
}