Skip to content

Commit

Permalink
Merge pull request #4 from ApplauseOSS/PD-4901-error-var-name
Browse files Browse the repository at this point in the history
Include name of env var in error message
  • Loading branch information
agaffney authored Aug 12, 2019
2 parents 9102c4e + ee6d4e9 commit 42b3af1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.2.0
0.2.1
4 changes: 2 additions & 2 deletions lib/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ func (w *WorkerPool) Start() {
if env != nil {
ciphertext, err := base64.StdEncoding.DecodeString(strings.TrimPrefix(env.Value, "decrypt:"))
if err != nil {
log.Fatal(err)
log.Fatalf("Error encountered while decrypting var '%s': %s", env.Name, err.Error())
}
decrypted_value, err := kmsHelper.Decrypt(ciphertext)
if err != nil {
log.Fatal(err)
log.Fatalf("Error encountered while decrypting var '%s': %s", env.Name, err.Error())
}
env.Value = string(decrypted_value)
w.OutChan <- env
Expand Down

0 comments on commit 42b3af1

Please sign in to comment.