Taichi Masuyama 4 lat temu
rodzic
commit
ccc114b96b
1 zmienionych plików z 8 dodań i 2 usunięć
  1. 8 2
      packages/app/src/server/service/page.ts

+ 8 - 2
packages/app/src/server/service/page.ts

@@ -2264,7 +2264,10 @@ class PageService {
       throw new V5ConversionError(`Could not find the page "${path}" to convert.`, V5ConversionErrCode.PAGE_NOT_FOUND);
       throw new V5ConversionError(`Could not find the page "${path}" to convert.`, V5ConversionErrCode.PAGE_NOT_FOUND);
     }
     }
     if (pages.length > 1) {
     if (pages.length > 1) {
-      throw new V5ConversionError(`There are more than two pages at the path "${path}". Please rename or delete the page first.`, V5ConversionErrCode.DUPLICATE_PAGES_FOUND);
+      throw new V5ConversionError(
+        `There are more than two pages at the path "${path}". Please rename or delete the page first.`,
+        V5ConversionErrCode.DUPLICATE_PAGES_FOUND,
+      );
     }
     }
 
 
     const page = pages[0];
     const page = pages[0];
@@ -2287,7 +2290,10 @@ class PageService {
         throw err;
         throw err;
       }
       }
       if (!isGrantNormalized) {
       if (!isGrantNormalized) {
-        throw new V5ConversionError('This page cannot be migrated since the selected grant or grantedGroup is not assignable to this page.', V5ConversionErrCode.GRANT_INVALID);
+        throw new V5ConversionError(
+          'This page cannot be migrated since the selected grant or grantedGroup is not assignable to this page.',
+          V5ConversionErrCode.GRANT_INVALID,
+        );
       }
       }
     }
     }
     else {
     else {