Fix panic message

The arguments are backwards from the message.

PiperOrigin-RevId: 202054887
Change-Id: Id5750a84ca091f8b8fbe15be8c648d4fa3e31eb2
This commit is contained in:
Michael Pratt
2018-06-25 18:17:17 -07:00
committed by Shentubot
parent 16882484f9
commit db94befb63
+1 -1
View File
@@ -964,7 +964,7 @@ func direntReaddir(ctx context.Context, d *Dirent, it DirIterator, root *Dirent,
offset -= 2
newOffset, err := it.IterateDir(ctx, dirCtx, int(offset))
if int64(newOffset) < offset {
panic(fmt.Sprintf("node.Readdir returned offset %v less that input offset %v", offset, newOffset))
panic(fmt.Sprintf("node.Readdir returned offset %v less than input offset %v", newOffset, offset))
}
// Add the initial nodes back to the offset count.
newOffset += 2