Skip to content

Commit

Permalink
fix: err handling
Browse files Browse the repository at this point in the history
  • Loading branch information
meganwolf0 committed Jan 15, 2025
1 parent c3eb583 commit 91734a7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/pkg/common/oscal/component.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,10 @@ func (c *ComponentDefinition) RewritePaths(baseDir string, newDir string) error

// For pathsToRemap, find all paths in the component defintion and run common.RemapPath on them
for _, path := range pathsToRemap {
common.TraverseAndUpdatePaths(c.Model, path, baseDir, newDir)
err := common.TraverseAndUpdatePaths(c.Model, path, baseDir, newDir)
if err != nil {
return err
}
}

return nil
Expand Down

0 comments on commit 91734a7

Please sign in to comment.