Skip to content

Commit 23d32fd

Browse files
committed
Move log output to after error check
This log output is only meaningful if there wasn't an error.
1 parent d6701ac commit 23d32fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: check/checkdata/schema/parsevalidationresult.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -189,10 +189,10 @@ func validationErrorSchemaPointerValueMatch(
189189
schemasPath *paths.Path,
190190
) bool {
191191
marshalledSchemaPointerValue, err := json.Marshal(schemaPointerValue(schemaURL, schemaPointer, schemasPath))
192-
logrus.Tracef("Checking schema pointer value: %s match with regexp: %s", marshalledSchemaPointerValue, schemaPointerValueRegexp)
193192
if err != nil {
194193
panic(err)
195194
}
195+
logrus.Tracef("Checking schema pointer value: %s match with regexp: %s", marshalledSchemaPointerValue, schemaPointerValueRegexp)
196196
return schemaPointerValueRegexp.Match(marshalledSchemaPointerValue)
197197
}
198198

0 commit comments

Comments
 (0)