Skip to content

Commit

Permalink
fix(middleware): log invalid filetype (karma-runner#3292)
Browse files Browse the repository at this point in the history
  • Loading branch information
johnjbarton authored Apr 5, 2019
1 parent c7ebf0b commit 7eb48c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/middleware/karma.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ function createKarmaMiddleware (
const fileType = file.type || path.extname(filePath).substring(1)

if (helper.isDefined(fileType) && !FILE_TYPES.includes(fileType)) {
log.warn('Invalid file type, defaulting to js.', fileType)
log.warn(`Invalid file type (${fileType}), defaulting to js.`)
}

if (!file.isUrl) {
Expand Down

0 comments on commit 7eb48c5

Please sign in to comment.