Skip to content

Commit

Permalink
Open the evaluated path
Browse files Browse the repository at this point in the history
  • Loading branch information
puhitaku committed Mar 21, 2023
1 parent 7bb9bf2 commit 25ec12b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func WriteHandler(filename string, wt io.WriterTo) error {

log.Debug().Str("requestId", reqID).Msgf("evaluated path: %s", evalPath)

file, err := os.OpenFile(filename, os.O_WRONLY|os.O_CREATE|os.O_EXCL, 0644)
file, err := os.OpenFile(evalPath, os.O_WRONLY|os.O_CREATE|os.O_EXCL, 0644)
if err != nil {
log.Error().Str("requestId", reqID).Msgf("failed to open the file: %s", err)
return err
Expand Down

0 comments on commit 25ec12b

Please sign in to comment.