Skip to content

Commit

Permalink
..
Browse files Browse the repository at this point in the history
  • Loading branch information
iuroc committed Aug 13, 2024
1 parent 5ee4496 commit b75306d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@ func main() {
}
path := TrimPathInput(scanner.Text())
work, err := dodo.NewUploadWork(path, userInfo.Token, userInfo.UID)
if err != nil {
if os.IsNotExist(err) {
fmt.Println("❗ 错误: 文件不存在,请检查路径是否正确。")
continue
} else if err != nil {
fmt.Println("❗ 错误:", err)
continue
}
Expand Down

0 comments on commit b75306d

Please sign in to comment.