mirror of
https://github.com/square/certigo.git
synced 2024-04-21 12:32:40 +00:00
Merge pull request #103 from square/cs/no-print
Return error instead of printing to stderr in lib
This commit is contained in:
+1
-1
@@ -10,7 +10,7 @@ go:
|
||||
|
||||
before_install:
|
||||
- go get github.com/Masterminds/glide
|
||||
- pip install cram --user `whoami`
|
||||
- pip install cram --user
|
||||
|
||||
install:
|
||||
- go build .
|
||||
|
||||
+1
-1
@@ -196,7 +196,7 @@ func readCertsFromStream(reader io.Reader, filename string, format string, passw
|
||||
}
|
||||
blocks, err := pkcs12.ToPEM(data, password(""))
|
||||
if err != nil || len(blocks) == 0 {
|
||||
fmt.Fprint(os.Stderr, "keystore appears to be empty or password was incorrect\n")
|
||||
return fmt.Errorf("keystore appears to be empty or password was incorrect\n")
|
||||
}
|
||||
for _, block := range blocks {
|
||||
block.Headers = mergeHeaders(block.Headers, headers)
|
||||
|
||||
Reference in New Issue
Block a user