Skip to content

Commit

Permalink
print non-existent key in configmap
Browse files Browse the repository at this point in the history
  • Loading branch information
xilabao committed Jun 15, 2017
1 parent 4a8c245 commit 6abed58
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pkg/volume/configmap/configmap.go
Original file line number Diff line number Diff line change
Expand Up @@ -266,9 +266,7 @@ func MakePayload(mappings []v1.KeyToPath, configMap *v1.ConfigMap, defaultMode *
if optional {
continue
}
err_msg := "references non-existent config key"
glog.Errorf(err_msg)
return nil, fmt.Errorf(err_msg)
return nil, fmt.Errorf("configmap references non-existent config key: %s", ktp.Key)
}

fileProjection.Data = []byte(content)
Expand Down

0 comments on commit 6abed58

Please sign in to comment.