Index: chapterx-frontend/src/pages/writer/CreateChapterPage.tsx
===================================================================
--- chapterx-frontend/src/pages/writer/CreateChapterPage.tsx	(revision b62cefc14094ca5ac7154f7d48797a1e6c444935)
+++ chapterx-frontend/src/pages/writer/CreateChapterPage.tsx	(revision 7fbb91c66b46c3063caa934a83d6d0681406c83c)
@@ -56,7 +56,14 @@
       is_published: isPublished,
     }
-    addChapter(chapter)
+    try {
+      await addChapter(chapter)
+    } catch (err: any) {
+      const msg = err?.response?.data?.message || err?.message || 'Failed to save chapter.'
+      addToast(msg, 'error')
+      setLoading(false)
+      return
+    }
     addToast(isPublished ? 'Chapter published!' : 'Chapter saved as draft!')
-    navigate(`/writer/edit-story/${storyId}`)
+    navigate(isPublished ? `/story/${storyId}` : `/writer/edit-story/${storyId}`)
     setLoading(false)
   }
