Improve error message clarity for subject count limit
Co-authored-by: bdehamer <[email protected]>
This commit is contained in:
co-authored by
bdehamer
parent
14aaaaa7de
commit
b0f0516e10
+1
-1
@@ -101,7 +101,7 @@ const getSubjectFromPath = async (
|
|||||||
if (stat.isFile()) {
|
if (stat.isFile()) {
|
||||||
if (files.length >= MAX_SUBJECT_COUNT) {
|
if (files.length >= MAX_SUBJECT_COUNT) {
|
||||||
throw new Error(
|
throw new Error(
|
||||||
`Too many subjects specified (at least ${files.length + 1}). The maximum number of subjects is ${MAX_SUBJECT_COUNT}.`
|
`Too many subjects specified (>${MAX_SUBJECT_COUNT}). The maximum number of subjects is ${MAX_SUBJECT_COUNT}.`
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
files.push(p)
|
files.push(p)
|
||||||
|
|||||||
Reference in New Issue
Block a user