diff --git a/src/run.js b/src/run.js index 11133fb..7f2a0ed 100644 --- a/src/run.js +++ b/src/run.js @@ -31,7 +31,7 @@ async function run({ if (files.length === 0) { console.error(`No files found to scan.`); - process.exit(1); + throw new Error(`No files found to scan.`); } let report = {};