Skip to content
This repository has been archived by the owner on Sep 15, 2024. It is now read-only.

Commit

Permalink
fix printf to add newline
Browse files Browse the repository at this point in the history
  • Loading branch information
bketelsen committed Aug 23, 2021
1 parent 732537f commit d09cbe2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions internal/cuedb/engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ func (r *Engine) GetDataSetsDAG() *dag.DAG {

_, err := graph.AddVertex(&DagNode{Name: "root"})
if err != nil {
pterm.Warning.Printf("failed to add vertex: %v", err)
pterm.Warning.Printf("failed to add vertex: %v\n", err)
}
datasets := r.GetDataSets()

Expand All @@ -134,13 +134,13 @@ func (r *Engine) GetDataSetsDAG() *dag.DAG {
d := DagNode{Name: dataSet.ID()}
_, err := graph.AddVertex(&d)
if err != nil {
pterm.Warning.Printf("failed to add vertex: %v", err)
pterm.Warning.Printf("failed to add vertex: %v\n", err)
continue
}

err = graph.AddEdge("root", d.ID())
if err != nil {
pterm.Warning.Printf("failed to add edge: %v", err)
pterm.Warning.Printf("failed to add edge: %v\n", err)
continue
}
}
Expand All @@ -151,7 +151,7 @@ func (r *Engine) GetDataSetsDAG() *dag.DAG {
edge, _ := r.GetDataSet(relationship)
err := graph.AddEdge(dataSet.ID(), edge.ID())
if err != nil {
pterm.Warning.Printf("failed to add edge: %v", err)
pterm.Warning.Printf("failed to add edge: %v\n", err)
continue
}
}
Expand Down

0 comments on commit d09cbe2

Please sign in to comment.