Merge pull request #12690 from mathieudutour/patch-1

Core: Log which CSF file is failing to load
This commit is contained in:
Michael Shilman 2020-10-07 20:51:48 +08:00 committed by GitHub
commit 986f6d64c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -57,7 +57,7 @@ const loadStories = (
typeof req.resolve === 'function' ? req.resolve(filename) : filename
);
} catch (error) {
logger.warn(`Unexpected error: ${error}`);
logger.warn(`Unexpected error while loading ${filename}: ${error}`);
}
});
});