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