harukatokutake 6 лет назад
Родитель
Сommit
18f0fff0a0

+ 2 - 2
src/client/js/components/Admin/FullTextSearchManagement/FullTextSearchPage.jsx

@@ -23,14 +23,14 @@ class FullTextSearchManagement extends React.Component {
     try {
       const res = await appContainer.apiPost('/admin/search/build', { page_id: pageId });
       if (!res.ok) {
-        throw new Error();
+        throw new Error(res.message);
       }
       else {
         toastSuccess('Building request is successfully posted.');
       }
     }
     catch (e) {
-      toastError(new Error('エラーが発生しました'));
+      toastError(e, (new Error('エラーが発生しました')));
     }
   }