Sha256: 2b0fca24a86eef439511347653206b5edb57424cd6e0b24100fc184e1d9803bf

Contents?: true

Size: 400 Bytes

Versions: 24

Compression:

Stored size: 400 Bytes

Contents

'use strict';

class NoFilesFoundError extends Error {
	/**
	 * @param {string|string[]} fileList
	 */
	constructor(fileList) {
		super();

		if (typeof fileList === 'string') {
			fileList = [fileList];
		}

		const pattern = fileList.filter((i) => !i.startsWith('!')).join(', ');

		this.message = `No files matching the pattern "${pattern}" were found.`;
	}
}

module.exports = NoFilesFoundError;

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
trusty-cms-6.3.1 node_modules/stylelint/lib/utils/noFilesFoundError.js
trusty-cms-5.0.7 node_modules/stylelint/lib/utils/noFilesFoundError.js
trusty-cms-5.0.6 node_modules/stylelint/lib/utils/noFilesFoundError.js
trusty-cms-5.0.5 node_modules/stylelint/lib/utils/noFilesFoundError.js
trusty-cms-5.0.4 node_modules/stylelint/lib/utils/noFilesFoundError.js
trusty-cms-5.0.3 node_modules/stylelint/lib/utils/noFilesFoundError.js
trusty-cms-5.0.2 node_modules/stylelint/lib/utils/noFilesFoundError.js
trusty-cms-5.0.1 node_modules/stylelint/lib/utils/noFilesFoundError.js
trusty-cms-4.3.5 node_modules/stylelint/lib/utils/noFilesFoundError.js
trusty-cms-5.0.0 node_modules/stylelint/lib/utils/noFilesFoundError.js
trusty-cms-4.3.4 node_modules/stylelint/lib/utils/noFilesFoundError.js
trusty-cms-4.3.3 node_modules/stylelint/lib/utils/noFilesFoundError.js
trusty-cms-4.3.2 node_modules/stylelint/lib/utils/noFilesFoundError.js
trusty-cms-4.3.1 node_modules/stylelint/lib/utils/noFilesFoundError.js
trusty-cms-4.3 node_modules/stylelint/lib/utils/noFilesFoundError.js
trusty-cms-4.2.3 node_modules/stylelint/lib/utils/noFilesFoundError.js
trusty-cms-4.2.2 node_modules/stylelint/lib/utils/noFilesFoundError.js
trusty-cms-4.2.1 node_modules/stylelint/lib/utils/noFilesFoundError.js
trusty-cms-4.2 node_modules/stylelint/lib/utils/noFilesFoundError.js
trusty-cms-4.1.9 node_modules/stylelint/lib/utils/noFilesFoundError.js