identify: properly check for unknown modes

This commit is contained in:
Starbeamrainbowlabs 2020-07-03 16:13:43 +01:00
parent a43429d3ad
commit f8eb85abee
Signed by: sbrl
GPG Key ID: 1BE5172E637709C2
1 changed files with 6 additions and 0 deletions

View File

@ -40,6 +40,12 @@ export default async function(settings) {
i++;
}
break;
default:
console.error(`Error: Unknown mode ${settings.cli.mode} (possible modes: single, stream)`);
process.exit(1);
break;
}
}