adjust an error message
This commit is contained in:
		@@ -1,3 +1,4 @@
 | 
				
			|||||||
 | 
					import { CustomError, errorCodes } from "../interfaces";
 | 
				
			||||||
import { scheduleNames, supportedSchedule } from "../types/scheduledEventTypes";
 | 
					import { scheduleNames, supportedSchedule } from "../types/scheduledEventTypes";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
export function findInScheduleTypes(inputString: string): supportedSchedule {
 | 
					export function findInScheduleTypes(inputString: string): supportedSchedule {
 | 
				
			||||||
@@ -7,7 +8,7 @@ export function findInScheduleTypes(inputString: string): supportedSchedule {
 | 
				
			|||||||
		// `sheepName` comes from the list of `sheepNames` so the compiler is happy.
 | 
							// `sheepName` comes from the list of `sheepNames` so the compiler is happy.
 | 
				
			||||||
		return scheduleName;
 | 
							return scheduleName;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	throw new Error('That is not a schedule name.');
 | 
						throw new CustomError('That is not a schedule name.', errorCodes.schedule_not_supported);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user