- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 287 for err1 (0.1 sec)
-
src/cmd/internal/bio/buf.go
func (r *Reader) Offset() int64 { off, err := r.f.Seek(0, 1) if err != nil { log.Fatalf("seeking in output [0, 1]: %v", err) } off -= int64(r.Buffered()) return off } func (w *Writer) Offset() int64 { if err := w.Flush(); err != nil { log.Fatalf("writing output: %v", err) } off, err := w.f.Seek(0, 1) if err != nil { log.Fatalf("seeking in output [0, 1]: %v", err) } return off }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 11 17:15:15 UTC 2020 - 3.1K bytes - Viewed (0) -
src/compress/lzw/writer.go
// the next emitted code. if w.err = w.write(w, code); w.err != nil { return 0, w.err } code = literal // Increment e.hi, the next implied code. If we run out of codes, reset // the writer state (including clearing the hash table) and continue. if err1 := w.incHi(); err1 != nil { if err1 == errOutOfCodes { continue } w.err = err1 return 0, w.err }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 26 13:32:40 UTC 2024 - 7.9K bytes - Viewed (0) -
src/cmd/cgo/internal/testerrors/errors_test.go
dir, err := os.MkdirTemp("", filepath.Base(t.Name())) if err != nil { t.Fatal(err) } defer os.RemoveAll(dir) dst := filepath.Join(dir, strings.TrimSuffix(file, ".go")) cmd := exec.Command("go", "build", "-gcflags=-L -e", "-o="+dst, path(file)) // TODO(gri) no need for -gcflags=-L if go tool is adjusted out, err := cmd.CombinedOutput() if err == nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 20 15:50:06 UTC 2024 - 4K bytes - Viewed (0) -
src/path/filepath/path.go
err1 := walkFn(path, info, err) // If err != nil, walk can't walk into this directory. // err1 != nil means walkFn want walk to skip this directory or stop walking. // Therefore, if one of err and err1 isn't nil, walk will return. if err != nil || err1 != nil { // The caller's behavior is controlled by the return value, which is decided // by walkFn. walkFn may ignore err and return nil.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 15.5K bytes - Viewed (0) -
cmd/kubeadm/app/componentconfigs/utils_test.go
}, } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { if got := tt.errs.Error(); got != tt.wantErrorMap { t.Errorf("UnsupportedConfigVersionsErrorMap.Error() = %v\n, want %v", got, tt.wantErrorMap) } if tt.wantError != "" { for _, err := range tt.errs { if got := err.Error(); got != tt.wantError { t.Errorf("UnsupportedConfigVersionError.Error() = %v\n, want %v", got, tt.wantError)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jan 09 13:52:11 UTC 2024 - 3.1K bytes - Viewed (0) -
pkg/volume/util/fsquota/project.go
} fProjid, err := os.OpenFile(projidFile, os.O_RDONLY|os.O_CREATE, 0644) if err == nil { // Check once more, to ensure nothing got changed out from under us if err = projFilesAreOK(); err == nil { err = lockFile(fProjects) if err == nil { err = lockFile(fProjid) if err == nil { return fProjects, fProjid, nil } // Nothing useful we can do if we get an error here
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 20 14:49:03 UTC 2023 - 10.6K bytes - Viewed (0) -
pilot/pkg/security/authz/model/generator_test.go
t.Errorf("both permission and principal returned error") } } else { _, err1 := tc.g.principal(tc.key, tc.value, tc.forTCP, false) _, err2 := tc.g.permission(tc.key, tc.value, tc.forTCP) if err1 == nil || err2 == nil { t.Fatalf("wanted error") } return } if diff := cmp.Diff(got, tc.want, protocmp.Transform()); diff != "" { var gotYaml string gotProto, ok := got.(proto.Message)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Sat Apr 20 01:58:53 UTC 2024 - 13K bytes - Viewed (0) -
pkg/volume/util/fsquota/quota_linux.go
// report incorrectly. isNotMount, err := m.IsLikelyNotMountPoint(path) if err != nil { return "/", err } if !isNotMount { return path, nil } path = filepath.Dir(path) } return "/", nil } func detectMountpoint(m mount.Interface, path string) (string, error) { xpath, err := filepath.Abs(path) if err != nil { return "/", err } xpath, err = filepath.EvalSymlinks(xpath)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Apr 07 08:07:51 UTC 2023 - 14.1K bytes - Viewed (0) -
pkg/volume/util/device_util_linux.go
io := handler.getIo disk, err := findDeviceForPath(device, io) if err != nil { return "" } sysPath := "/sys/block/" if dirs, err := io.ReadDir(sysPath); err == nil { for _, f := range dirs { name := f.Name() if strings.HasPrefix(name, "dm-") { if _, err1 := io.Lstat(sysPath + name + "/slaves/" + disk); err1 == nil { return "/dev/" + name } } } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Sep 16 11:12:06 UTC 2022 - 9.4K bytes - Viewed (0) -
src/net/rpc/jsonrpc/all_test.go
func (pipeAddr) Network() string { return "pipe" } func (pipeAddr) String() string { return "pipe" } func (p *pipe) Close() error { err := p.PipeReader.Close() err1 := p.PipeWriter.Close() if err == nil { err = err1 } return err } func (p *pipe) LocalAddr() net.Addr { return pipeAddr(0) } func (p *pipe) RemoteAddr() net.Addr { return pipeAddr(0) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Sep 07 01:09:53 UTC 2022 - 7.8K bytes - Viewed (0)