diff options
| author | Lukasz Kasprzak <lukas@labunix.xyz> | 2026-09-16 00:59:08 +0200 |
|---|---|---|
| committer | Lukasz Kasprzak <lukas@labunix.xyz> | 2026-09-16 00:59:08 +0200 |
| commit | 40ecbfae85c4c76a8ed944a91f8c000b4ec55fc5 (patch) | |
| tree | 45fbea39568423fbde994931675fcb8aa49b561b /cmd/krino/sort.go | |
| parent | d6a280d87a274abc8d9cab9956d2af1c845f83d1 (diff) | |
| download | krino-40ecbfae85c4c76a8ed944a91f8c000b4ec55fc5.tar.gz krino-40ecbfae85c4c76a8ed944a91f8c000b4ec55fc5.zip | |
undo runs through the same session
Diffstat (limited to 'cmd/krino/sort.go')
| -rw-r--r-- | cmd/krino/sort.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/cmd/krino/sort.go b/cmd/krino/sort.go index 4c0a0d8..54d5574 100644 --- a/cmd/krino/sort.go +++ b/cmd/krino/sort.go @@ -104,6 +104,13 @@ func cmdSort(g *globals, names []string, stdout, stderr io.Writer) int { fmt.Fprintf(stderr, "krino: %v\n", err) return 1 } + // Sorting opens the log before the first directory, as it always has: + // the run id is fixed for every directory, and a failure to open is + // reported before anything is planned. + if err := sess.OpenLog(); err != nil { + fmt.Fprintf(stderr, "krino: %v\n", err) + return 1 + } defer func() { if cerr := sess.Close(); cerr != nil { fmt.Fprintf(stderr, "krino: %v\n", cerr) |
