Skip to content
This repository was archived by the owner on May 24, 2022. It is now read-only.

Commit 0538928

Browse files
committed
Throw error instead
1 parent d502fe6 commit 0538928

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/fether-react/src/RequireHealthOverlay/RequireHealthOverlay.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ function statusMatches (status, require) {
2020
case 'sync':
2121
return status === STATUS.GOOD;
2222
default:
23-
return false;
23+
throw new Error(`Status '${status}' must be one of 'connected|sync'.`);
2424
}
2525
}
2626

0 commit comments

Comments
 (0)