Skip to content

Commit

Permalink
fix(isValidUserConfig): MESSAGES.defaultThemeName
Browse files Browse the repository at this point in the history
  • Loading branch information
dnnsjrng committed Sep 19, 2022
1 parent c9aac51 commit f456382
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ module.exports = class Breakpoints {
return false;
}
if (!this.#config.drupal?.themeName) {
console.warn(MESSAGES.defaultThemeName(DEFAULT_CONFIG.drupal.themeName));
console.warn(MESSAGES.defaultThemeName());
}
return true;
}
Expand Down
3 changes: 1 addition & 2 deletions lib/messages.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
module.exports = {
breakpoints: (path) =>
`Couldn't read Drupal's breakpoints file from ${path}!`,
defaultThemeName: (name) =>
`Missing "userConfig.drupal.themeName". Will use "${name}" for now.`,
defaultThemeName: () => `Missing "userConfig.drupal.themeName" value.`,
noOutput: (config) =>
`No output with this configuration:\n${JSON.stringify(config)}`,
readFile: (path) => `Couldn't read from ${path} file!`,
Expand Down

0 comments on commit f456382

Please sign in to comment.