You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Dec 19 12:49:00 148e5315b37068 vector [stage-5] Creating some files & directories
Dec 19 12:49:00 148e5315b37068 vector [stage-5] $ ./your_git.sh write-tree
Dec 19 12:49:00 148e5315b37068 vector [your_program] aec2d24a22463ac63c7ec9684903f7f5ba292c79
Dec 19 12:49:00 148e5315b37068 vector [stage-5] Reading file at .git/objects/ae/c2d24a22463ac63c7ec9684903f7f5ba292c79
Dec 19 12:49:00 148e5315b37068 vector Error [stage-5] CodeCrafters internal error. Error reading .git/objects/ae/c2d24a22463ac63c7ec9684903f7f5ba292c79: open /tmp/worktree814524593/.git/objects/ae/c2d24a22463ac63c7ec9684903f7f5ba292c79: no such file or directory
Dec 19 12:49:00 148e5315b37068 vector [stage-5] Test failed
Here's our code that's supposed to filter user vs. internal error:
iferr==os.ErrNotExist {
returnfmt.Errorf("Did you write the tree object? Did not find a file in .git/objects/<first 2 chars of sha>/<remaining chars of sha>")
} elseiferr!=nil {
returnfmt.Errorf("CodeCrafters internal error. Error reading %v: %v", relativePath, err)
}
Looks like this specific instance of "no such file or directory" isn't covered by os.ErrNotExist?
The text was updated successfully, but these errors were encountered:
Logs:
Here's our code that's supposed to filter user vs. internal error:
Looks like this specific instance of "no such file or directory" isn't covered by
os.ErrNotExist
?The text was updated successfully, but these errors were encountered: