Explicitly throw on error

pull/1000/head
Maxim Shishmarev 5 years ago
parent 0221e7b8c0
commit d9759bb40a

@ -160,7 +160,7 @@ class LokiSnodeAPI {
if (otherPaths.length === 0) {
// This should never happen!
log.error('No onion paths available after filtering');
throw new Error('No onion paths available after filtering');
}
return otherPaths[0].path;

Loading…
Cancel
Save