Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 139 for Errorf (0.17 sec)

  1. src/cmd/asm/internal/lex/input.go

    	if err != nil {
    		in.Error("error parsing #line (cannot happen):", err)
    	}
    	tok = in.Stack.Next()
    	if tok != scanner.String {
    		in.expectText("expected file name in #line")
    	}
    	file, err := strconv.Unquote(in.Stack.Text())
    	if err != nil {
    		in.Error("unquoting #line file name: ", err)
    	}
    	tok = in.Stack.Next()
    	if tok != '\n' {
    		in.Error("unexpected token at end of #line: ", tok)
    	}
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Aug 29 07:48:38 GMT 2023
    - 12.6K bytes
    - Viewed (0)
  2. src/archive/tar/writer.go

    	hdr  Header     // Shallow copy of Header that is safe for mutations
    	blk  block      // Buffer to use as temporary local storage
    
    	// err is a persistent error.
    	// It is only the responsibility of every exported method of Writer to
    	// ensure that this error is sticky.
    	err error
    }
    
    // NewWriter creates a new Writer writing to w.
    func NewWriter(w io.Writer) *Writer {
    	return &Writer{w: w, curr: &regFileWriter{w, 0}}
    }
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 18:36:46 GMT 2023
    - 19.6K bytes
    - Viewed (0)
  3. src/archive/tar/tar_test.go

    						if err := tw.WriteHeader(file.hdr); err != nil {
    							b.Errorf("unexpected WriteHeader error: %v", err)
    						}
    						if _, err := tw.Write(file.body); err != nil {
    							b.Errorf("unexpected Write error: %v", err)
    						}
    					}
    					if err := tw.Close(); err != nil {
    						b.Errorf("unexpected Close error: %v", err)
    					}
    				}
    			})
    		}
    	})
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Mar 15 16:01:50 GMT 2024
    - 24K bytes
    - Viewed (0)
  4. src/cmd/cgo/gcc.go

    	//
    	// If we see an error at not-declared:xxx, the corresponding name is not declared.
    	// If we see an error at not-type:xxx, the corresponding name is not a type.
    	// If we see an error at not-int-const:xxx, the corresponding name is not an integer constant.
    	// If we see an error at not-num-const:xxx, the corresponding name is not a number constant.
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Nov 02 16:43:23 GMT 2023
    - 97K bytes
    - Viewed (0)
  5. src/bufio/scan_test.go

    			if got != words[wordCount] {
    				t.Errorf("#%d: %d: expected %q got %q", n, wordCount, words[wordCount], got)
    			}
    		}
    		if s.Scan() {
    			t.Errorf("#%d: scan ran too long, got %q", n, s.Text())
    		}
    		if wordCount != len(words) {
    			t.Errorf("#%d: termination expected at %d; got %d", n, len(words), wordCount)
    		}
    		err := s.Err()
    		if err != nil {
    			t.Errorf("#%d: %v", n, err)
    		}
    	}
    }
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Sep 22 16:22:42 GMT 2023
    - 14.3K bytes
    - Viewed (0)
  6. misc/go_android_exec/main.go

    		}
    		return errorf("%v: %w", cmd, err)
    	}
    
    	parts := strings.SplitN(string(bytes.TrimSpace(out)), ":", 4)
    	if len(parts) < 2 {
    		return errorf("%v: missing ':' in output: %q", cmd, out)
    	}
    	importPath = parts[0]
    	if importPath == "" || importPath == "." {
    		return errorf("current directory does not have a Go import path")
    	}
    	isStd, err = strconv.ParseBool(parts[1])
    	if err != nil {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Aug 21 17:46:57 GMT 2023
    - 15.3K bytes
    - Viewed (0)
  7. misc/ios/go_ios_exec.go

    	cmd.Stderr = &stderr
    	if err := cmd.Start(); err != nil {
    		return nil, fmt.Errorf("idevicedebugserverproxy: %v", err)
    	}
    	go func() {
    		if err := cmd.Wait(); err != nil {
    			if _, ok := err.(*exec.ExitError); ok {
    				errChan <- fmt.Errorf("idevicedebugserverproxy: %s", stderr.Bytes())
    			} else {
    				errChan <- fmt.Errorf("idevicedebugserverproxy: %v", err)
    			}
    		}
    		errChan <- nil
    	}()
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Apr 11 16:34:30 GMT 2022
    - 23.4K bytes
    - Viewed (0)
  8. misc/go_android_exec/exitcode_test.go

    		}
    		f.Write([]byte(text))
    		_, err := f.Finish()
    		// We should get a no exit code error
    		if err == nil || !wantErr.MatchString(err.Error()) {
    			t.Errorf("want error matching %s, got %s", wantErr, err)
    		}
    		// And it should flush all output (even if it looks
    		// like we may be getting an exit code)
    		if got := out.String(); text != got {
    			t.Errorf("want full output %q, got %q", text, got)
    		}
    	}
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed May 03 14:54:58 GMT 2023
    - 2.1K bytes
    - Viewed (0)
  9. src/bytes/compare_test.go

    			a[i] = 8
    			b[i] = 9
    		}
    		cmp := Compare(a[:len], b[:len])
    		if cmp != 0 {
    			t.Errorf(`CompareIdentical(%d) = %d`, len, cmp)
    		}
    		if len > 0 {
    			cmp = Compare(a[:len-1], b[:len])
    			if cmp != -1 {
    				t.Errorf(`CompareAshorter(%d) = %d`, len, cmp)
    			}
    			cmp = Compare(a[:len], b[:len-1])
    			if cmp != 1 {
    				t.Errorf(`CompareBshorter(%d) = %d`, len, cmp)
    			}
    		}
    		for k := 0; k < len; k++ {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Jul 13 23:11:42 GMT 2023
    - 6.8K bytes
    - Viewed (0)
  10. src/archive/zip/register.go

    	fw *flate.Writer
    }
    
    func (w *pooledFlateWriter) Write(p []byte) (n int, err error) {
    	w.mu.Lock()
    	defer w.mu.Unlock()
    	if w.fw == nil {
    		return 0, errors.New("Write after Close")
    	}
    	return w.fw.Write(p)
    }
    
    func (w *pooledFlateWriter) Close() error {
    	w.mu.Lock()
    	defer w.mu.Unlock()
    	var err error
    	if w.fw != nil {
    		err = w.fw.Close()
    		flateWriterPool.Put(w.fw)
    		w.fw = nil
    	}
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 18:36:46 GMT 2023
    - 3.7K bytes
    - Viewed (0)
Back to top