UNPKG

el-beeswarm

Version:

<div style="display: flex; padding: 1rem; flex-direction: column; align-items: center; justify-content: center; height: 100vh; text-align: center; display: flex;

21 lines (15 loc) 400 B
'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;