Skip to content
Snippets Groups Projects
Commit f685139e authored by Austin King's avatar Austin King
Browse files

Better error handling for non-IdP domains

parent 1943fac9
No related branches found
No related tags found
No related merge requests found
......@@ -23,8 +23,10 @@ if (process.argv.length !== 3) {
var domain = process.argv[2];
primary.checkSupport(domain, function(err, urls, publicKey) {
if (err) {
process.stderr.write("error: " + err + "\n");
if (err || publicKey === null) {
if (err) {
process.stderr.write("error: " + err + "\n");
}
process.exit(1);
}
console.log('Priary domain: ', domain);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment