summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorPřemysl Janouch <p@janouch.name>2018-10-04 13:29:22 +0200
committerPřemysl Janouch <p@janouch.name>2018-10-04 14:14:04 +0200
commit9d2412398ad51e31048ae61f42955f04f85d292f (patch)
tree90649c421f28d83a816494b843940fca4a835b05 /cmd
parent62206ed344097fa2232dbb75d96ed2ea60841ec4 (diff)
downloadpdf-simple-sign-9d2412398ad51e31048ae61f42955f04f85d292f.tar.gz
pdf-simple-sign-9d2412398ad51e31048ae61f42955f04f85d292f.tar.xz
pdf-simple-sign-9d2412398ad51e31048ae61f42955f04f85d292f.zip
Go: additional small fixes
Diffstat (limited to 'cmd')
-rw-r--r--cmd/pdf-simple-sign/main.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/pdf-simple-sign/main.go b/cmd/pdf-simple-sign/main.go
index 11aadaa..7c82786 100644
--- a/cmd/pdf-simple-sign/main.go
+++ b/cmd/pdf-simple-sign/main.go
@@ -64,9 +64,9 @@ func main() {
die(3, "%s", err)
}
if pdfDocument, err = pdf.Sign(pdfDocument, key, certs); err != nil {
- die(2, "error: %s", err)
+ die(4, "error: %s", err)
}
if err = ioutil.WriteFile(outputPath, pdfDocument, 0666); err != nil {
- die(3, "%s", err)
+ die(5, "%s", err)
}
}