hot reloading is better

This commit is contained in:
2024-08-27 17:14:21 -06:00
parent bc1449f537
commit eb18f93875
19 changed files with 248 additions and 89 deletions

View File

@@ -56,9 +56,9 @@ export const getDateFromString = (value: string): Date | undefined => {
}
};
export const getDateFromStringOrThrow = (value: string): Date => {
export const getDateFromStringOrThrow = (value: string, labelForError: string): Date => {
const d = getDateFromString(value);
if (!d) throw Error(`Invalid date format, ${value}`);
if (!d) throw Error(`Invalid date format for ${labelForError}, ${value}`);
return d;
};