fix: swapped line/col for issue #86

Swapped line and col in error.
This commit is contained in:
Dave Shanley
2023-02-27 10:11:06 -05:00
parent 4a378de02e
commit bf4e94bcbd

View File

@@ -956,7 +956,7 @@ func buildPropertyMap(root *yaml.Node, idx *index.SpecIndex, label string) (*low
refString = l refString = l
} else { } else {
return nil, fmt.Errorf("schema properties build failed: cannot find reference %s, line %d, col %d", return nil, fmt.Errorf("schema properties build failed: cannot find reference %s, line %d, col %d",
prop.Content[1].Value, prop.Content[1].Column, prop.Content[1].Line) prop.Content[1].Value, prop.Content[1].Line, prop.Content[1].Column)
} }
} }
totalProps++ totalProps++