Commit aa20b5b
fix: Split error message of yaml validation on push
When a PipelineRun template in the .tekton/ directory
contains a YAML syntax error, the error message was
prefixed with a confusing "cannot locate templates
in .tekton directory" message.
This change ensures the error accurately reflects that
a file was found but failed to parse, avoiding
confusion between empty .tekton directory
and a malformed one.
Signed-off-by: Zaki Shaikh <zashaikh@redhat.com>1 parent 608c97b commit aa20b5b
1 file changed
+13
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
192 | 192 | | |
193 | 193 | | |
194 | 194 | | |
| 195 | + | |
| 196 | + | |
195 | 197 | | |
196 | | - | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
197 | 201 | | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
198 | 207 | | |
| 208 | + | |
| 209 | + | |
199 | 210 | | |
200 | | - | |
| 211 | + | |
201 | 212 | | |
202 | 213 | | |
203 | 214 | | |
| |||
0 commit comments