Merge pull request #105 from square/less-panic

Don't panic in the JCEKS library
This commit is contained in:
Matthew McPherrin
2017-02-02 16:58:25 -08:00
committed by GitHub
+2 -2
View File
@@ -344,9 +344,9 @@ func (ks *KeyStore) Parse(r io.Reader, password []byte) error {
}
case 3:
// Secret-key entry
fallthrough
return fmt.Errorf("unimplemented: Secret-key")
default:
panic(fmt.Errorf("unimplemented tag: %d", tag))
return fmt.Errorf("unimplemented tag: %d", tag)
}
}