Browse Source

wip editor path

Steven Fukase 4 years ago
parent
commit
2e4f7e7749
2 changed files with 1 additions and 2 deletions
  1. 0 1
      src/client/js/components/PageCreateModal.jsx
  2. 1 1
      src/lib/util/path-utils.js

+ 0 - 1
src/client/js/components/PageCreateModal.jsx

@@ -77,7 +77,6 @@ const PageCreateModal = (props) => {
    * @param {string} paths
    */
   async function redirectToEditor(...paths) {
-
     try {
       const editorPath = await generateEditorPath(...paths);
       console.log(editorPath);

+ 1 - 1
src/lib/util/path-utils.js

@@ -120,7 +120,7 @@ function generateEditorPath(...paths) {
   const joinedPath = [...paths].join('/');
 
   if (!isCreatablePage(joinedPath)) {
-    throw new Error('Check path');
+    throw new Error('Invalid characters on path');
   }
 
   try {