aboutsummaryrefslogtreecommitdiff
path: root/Timeline/Controllers/TimelineController.cs
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-06-17 17:10:40 +0800
committercrupest <crupest@outlook.com>2020-06-17 17:10:40 +0800
commit4a46206ea5f004ecb595de4bfd573b6263ac462b (patch)
treeb4532afa1b9026d7245b7c172116a8cc99d33daf /Timeline/Controllers/TimelineController.cs
parentc360ec8414a563338839b239c0f8062bfdcdc4e9 (diff)
downloadtimeline-4a46206ea5f004ecb595de4bfd573b6263ac462b.tar.gz
timeline-4a46206ea5f004ecb595de4bfd573b6263ac462b.tar.bz2
timeline-4a46206ea5f004ecb595de4bfd573b6263ac462b.zip
refactor(back): Refactor timeline service.
Diffstat (limited to 'Timeline/Controllers/TimelineController.cs')
-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 6c7cfa95..36e9fe6d 100644
--- a/Timeline/Controllers/TimelineController.cs
+++ b/Timeline/Controllers/TimelineController.cs
@@ -135,7 +135,7 @@ namespace Timeline.Controllers
{
return NotFound(ErrorResponse.TimelineController.PostNotExist());
}
- catch (BadPostTypeException)
+ catch (TimelinePostNoDataException)
{
return BadRequest(ErrorResponse.TimelineController.PostNoData());
}