diff --git a/curriculum/get-challenges.js b/curriculum/get-challenges.js index 72554bea10d..9ea921565c5 100644 --- a/curriculum/get-challenges.js +++ b/curriculum/get-challenges.js @@ -14,7 +14,7 @@ exports.getChallengesForLang = async function getChallengesForLang( ) { const invalidLang = !curriculumLangs.includes(lang); if (invalidLang) - throw Error(`${lang} is not a accepted language. + throw Error(`${lang} is not an accepted language. Accepted languages are ${curriculumLangs.join(', ')}`); return buildCurriculum(lang, filters); diff --git a/curriculum/get-challenges.test.js b/curriculum/get-challenges.test.js index a848b4023d0..30eb6cdcca9 100644 --- a/curriculum/get-challenges.test.js +++ b/curriculum/get-challenges.test.js @@ -11,7 +11,7 @@ describe('create non-English challenge', () => { describe('getChallengesForLang', () => { it('throws if lang is an invalid language', async () => { await expect(() => getChallengesForLang('notlang')).rejects.toThrow( - 'notlang is not a accepted language' + 'notlang is not an accepted language' ); }); });