Commit 0538928d authored by Amaury Martiny's avatar Amaury Martiny
Browse files

Throw error instead

parent d502fe68
Pipeline #44344 passed with stage
in 2 minutes and 37 seconds
......@@ -20,7 +20,7 @@ function statusMatches (status, require) {
case 'sync':
return status === STATUS.GOOD;
return false;
throw new Error(`Status '${status}' must be one of 'connected|sync'.`);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment