Try to get a stack trace when trying to select skin without hash

This commit is contained in:
Jordan Eldredge 2020-11-07 19:10:23 -08:00
parent e183d1f6a0
commit 2e4946ac79

View file

@ -12,6 +12,10 @@ export function requestUnloadedSkin(index) {
}
export function selectedSkin(hash, position) {
if (hash == null) {
// trying to narrow down: https://sentry.io/share/issue/04b1bc5c2a764addac4e62dea201096a/
throw new Error("Tried to select a null skin");
}
return { type: "SELECTED_SKIN", hash, position };
}