diff options
author | crupest <crupest@outlook.com> | 2020-03-16 19:07:13 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2020-03-16 19:07:13 +0800 |
commit | fc0521d81aa2293b94ea40b79ec0df80966c0278 (patch) | |
tree | 07d96d3ab8ca909019cbb1225d533fe4aa2a57ac /Timeline/Controllers | |
parent | 067ef1edcb4409feda25a9356d49b146a9fd884b (diff) | |
download | timeline-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.cs | 2 |
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());
}
|