mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-23 10:07:35 +00:00
Try to get a stack trace when trying to select skin without hash
This commit is contained in:
parent
e183d1f6a0
commit
2e4946ac79
1 changed files with 4 additions and 0 deletions
|
|
@ -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 };
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue