Skip to content

Commit 0376aef

Browse files
committed
Dir: minor change to make logging consistent
1 parent 2047864 commit 0376aef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

builtin/dir.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ func dirEntries(dir string, justfiles, details bool) iter.Seq[Value] {
7777
list, err := f.ReadDir(100)
7878
if err != nil {
7979
if err != io.EOF {
80-
panic(err.Error())
80+
log.Panicln("ERROR: Dir:", err)
8181
}
8282
break
8383
}

0 commit comments

Comments
 (0)