Skip to content

Commit 9f99dd2

Browse files
bug fix
1 parent 27d313b commit 9f99dd2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/hexo/scaffold.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class Scaffold {
2626
if (!exist) return [];
2727

2828
return listDir(scaffoldDir, {
29-
ignoreFilesRegex: /^_|\/_/
29+
ignorePattern: /^_|\/_/
3030
});
3131
}).map(item => ({
3232
name: item.substring(0, item.length - extname(item).length),

lib/plugins/console/generate.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ class Generater {
133133
// Check the public folder
134134
return stat(publicDir).then(stats => {
135135
if (!stats.isDirectory()) {
136-
throw new Error('%s is not a directory', magenta(tildify(publicDir)));
136+
throw new Error(`${magenta(tildify(publicDir))} is not a directory`);
137137
}
138138
}).catch(err => {
139139
// Create public folder if not exists

0 commit comments

Comments
 (0)