Improve error message when labels map contains null values
stefanLeo opened this issue · 2 comments
stefanLeo commented
Environment:
Jib version: 3.4.3
Build tool: Maven 3.9.6
OS: N/A
Description of the issue:
Jib's checks if any of the keys and values set in the container.labels configuration is null, which is super helpful. However, the error message when an container.label value is null currently reads only like this: "labels map contains null values". For someone not so deep into Jib, this could be not enough of a hint to the actual problem.
Expected behavior:
The error message should contain the offending keys, for example like so: "labels map contains null values for key(s): FOO, BAR, BAZ"
Steps to reproduce:
Use an labels map with a value set to null
Run jib
chanseokoh commented
Dup of #4263.