Explorar o código

wip editor path

Steven Fukase %!s(int64=4) %!d(string=hai) anos
pai
achega
2e4f7e7749

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

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

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

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