Skip to content

Commit

Permalink
bugfix: insert new nodes into grove path, not cwd
Browse files Browse the repository at this point in the history
  • Loading branch information
whereswaldon committed Feb 20, 2020
1 parent 8913393 commit 5b01a93
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions history_widget.go
Original file line number Diff line number Diff line change
Expand Up @@ -279,10 +279,10 @@ func (v *HistoryWidget) FinishReplyString(parent forest.Node, content string) er
if err != nil {
return fmt.Errorf("failed creating reply: %w", err)
}
outfile := reply.ID().String()
err = saveAs(outfile, reply)

err = v.Add(reply)
if err != nil {
return fmt.Errorf("failed saving reply to disk: %w", err)
return fmt.Errorf("failed saving reply into store: %w", err)
}
return nil
}
Expand Down

0 comments on commit 5b01a93

Please sign in to comment.