diff --git a/__tests__/main.test.ts b/__tests__/main.test.ts index 7e114d499..c0e977f0c 100644 --- a/__tests__/main.test.ts +++ b/__tests__/main.test.ts @@ -411,7 +411,7 @@ describe('action', () => { expect(runMock).toHaveReturned() expect(setFailedMock).toHaveBeenCalledWith( new Error( - 'Too many subjects specified. The maximum number of subjects is 1024.' + 'Too many subjects specified. The maximum number of subjects is 1024. 1025 subjects were provided.' ) ) }) diff --git a/dist/index.js b/dist/index.js index 84a27a179..c5316db68 100644 --- a/dist/index.js +++ b/dist/index.js @@ -74168,7 +74168,7 @@ const getSubjectFromPath = async (subjectPath, subjectName) => { // Filter path list to just the files (not directories) const files = paths.filter(p => fs_1.default.statSync(p).isFile()); if (files.length > MAX_SUBJECT_COUNT) { - throw new Error(`Too many subjects specified. The maximum number of subjects is ${MAX_SUBJECT_COUNT}.`); + throw new Error(`Too many subjects specified. The maximum number of subjects is ${MAX_SUBJECT_COUNT}. ${files.length} subjects were provided.`); } for (const file of files) { const name = subjectName || path_1.default.parse(file).base; diff --git a/src/subject.ts b/src/subject.ts index b6a7a57cc..48439d00e 100644 --- a/src/subject.ts +++ b/src/subject.ts @@ -98,7 +98,7 @@ const getSubjectFromPath = async ( if (files.length > MAX_SUBJECT_COUNT) { throw new Error( - `Too many subjects specified. The maximum number of subjects is ${MAX_SUBJECT_COUNT}.` + `Too many subjects specified. The maximum number of subjects is ${MAX_SUBJECT_COUNT}. ${files.length} subjects were provided.` ) }