add a debugging statement to hash-format

This commit is contained in:
cswimr 2025-02-08 11:19:15 -06:00
parent ac1afd3997
commit c1d849b0e0
Signed by: cswimr
GPG key ID: 0EC431A8DA8F8087

View file

@ -10,6 +10,6 @@ export function isValidHashFormat(hashFormat: string): HashFormat {
if (hashFormat in HashFormat) {
return HashFormat[hashFormat as keyof typeof HashFormat];
} else {
throw new Error("Invalid index file hash format!");
throw new Error(`Invalid index file hash format: ${hashFormat}`);
}
}