Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ _This release is scheduled to be released on 2023-04-01._
- Added tests for hourly weather forecast
- Added possibility to ignore MagicMirror repo in updatenotification module
- Added Pirate Weather as new weather provider (#3005)
- Added error message if `<modulename>.js` file is missing in module folder to get a hint in the logs (#2403)

### Removed

Expand Down
8 changes: 8 additions & 0 deletions js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,14 @@ function App() {
moduleFolder = `${__dirname}/../modules/default/${module}`;
}

const moduleFile = `${moduleFolder}/${module}.js`;

try {
fs.accessSync(moduleFile, fs.R_OK);
} catch (e) {
Log.warn(`No ${moduleFile} found for module: ${moduleName}.`);
}

const helperPath = `${moduleFolder}/node_helper.js`;

let loadHelper = true;
Expand Down