You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -42,10 +45,11 @@ async function fsDirToMetaItems(
42
45
try{
43
46
subItems=awaitreaddir(workDir);
44
47
}catch(e){
45
-
logger.error(
46
-
`Failed to read directory: ${workDir}, maybe it does not exist. Please check it in "_meta.json".`,
48
+
constmetaFilePath=join(workDir,'_meta.json');
49
+
50
+
throwcreateError(
51
+
`${AUTO_NAV_SIDEBAR_ERROR_PREFIX}Failed to read directory: ${picocolors.yellow(workDir)}, maybe it does not exist. Please check it in ${picocolors.cyan(metaFilePath)}. (${e})`,
47
52
);
48
-
throwe;
49
53
}
50
54
// If there exists a file with the same name of the directory folder
51
55
// we don't need to generate SideMeta for this single file
@@ -152,7 +156,7 @@ async function metaItemToSidebarItem(
152
156
}
153
157
154
158
throwcreateError(
155
-
`Unknown meta item type: ${(metaItemasany).type}, please check it in "${join(workDir,'_meta.json')}".`,
159
+
`${AUTO_NAV_SIDEBAR_ERROR_PREFIX}Unknown meta item type: ${(metaItemasany).type}, please check it in "${join(workDir,'_meta.json')}".`,
0 commit comments