Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenjoezhang committed Nov 24, 2022
1 parent 27d313b commit 9f99dd2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/hexo/scaffold.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class Scaffold {
if (!exist) return [];

return listDir(scaffoldDir, {
ignoreFilesRegex: /^_|\/_/
ignorePattern: /^_|\/_/
});
}).map(item => ({
name: item.substring(0, item.length - extname(item).length),
Expand Down
2 changes: 1 addition & 1 deletion lib/plugins/console/generate.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ class Generater {
// Check the public folder
return stat(publicDir).then(stats => {
if (!stats.isDirectory()) {
throw new Error('%s is not a directory', magenta(tildify(publicDir)));
throw new Error(`${magenta(tildify(publicDir))} is not a directory`);
}
}).catch(err => {
// Create public folder if not exists
Expand Down

0 comments on commit 9f99dd2

Please sign in to comment.