Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 32 for OnError (0.4 sec)

  1. test/fixedbugs/issue21576.go

    	if err == nil {
    		log.Fatalf("Passed, expected an error")
    	}
    
    	want := []byte("fatal error: all goroutines are asleep - deadlock!")
    	if !bytes.Contains(output, want) {
    		log.Fatalf("Unmatched error message %q:\nin\n%s\nError: %v", want, output, err)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  2. build/pause/windows/pause.c

    		{
    			fprintf(stdout, "pause.c %s\n", VERSION_STRING(VERSION));
    			return 0;
    		}
    	}
    
    	if (SetConsoleCtrlHandler(CtrlHandler, TRUE))
    	{
    		Sleep(INFINITE);
    	}
    	else
    	{
    		printf("\nERROR: Could not set control handler\n");
    		return 1;
    	}
    	return 0;
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 23 13:09:17 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  3. src/internal/trace/oldtrace_test.go

    					if err == io.EOF {
    						break
    					}
    					t.Fatalf("couldn't read converted event: %s", err)
    				}
    				if err := v.Event(ev); err != nil {
    					t.Fatalf("converted event did not validate; event: \n%s\nerror: %s", ev, err)
    				}
    
    				if testName == "user_task_region_1_21_good" {
    					testedUserRegions = true
    					validRegions := map[string]struct{}{
    						"post-existing region": struct{}{},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  4. pkg/volume/iscsi/attacher.go

    	if err != nil {
    		return fmt.Errorf("iscsi: failed to detach disk: %s\nError: %v", deviceMountPath, err)
    	}
    	klog.V(4).Infof("iscsi: %q is unmounted, deleting the directory", deviceMountPath)
    	err = os.RemoveAll(deviceMountPath)
    	if err != nil {
    		return fmt.Errorf("iscsi: failed to delete the directory: %s\nError: %v", deviceMountPath, err)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Aug 04 08:51:31 UTC 2022
    - 6.8K bytes
    - Viewed (0)
  5. pkg/volume/fc/attacher.go

    	if err != nil {
    		klog.Errorf("fc: failed to get device from mnt: %s\nError: %v", deviceMountPath, err)
    		return err
    	}
    	// Unmount for deviceMountPath(=globalPDPath)
    	err = mount.CleanupMountPoint(deviceMountPath, detacher.mounter, false)
    	if err != nil {
    		return fmt.Errorf("fc: failed to unmount: %s\nError: %v", deviceMountPath, err)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 31 12:02:51 UTC 2022
    - 7.5K bytes
    - Viewed (0)
  6. test/fixedbugs/issue46234.go

    	if err == nil {
    		log.Fatalf("Passed, expected an error")
    	}
    
    	want := []byte("nil pointer dereference")
    	if !bytes.Contains(output, want) {
    		log.Fatalf("Unmatched error message %q:\nin\n%s\nError: %v", want, output, err)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  7. src/runtime/testdata/testprog/crash.go

    	}()
    	panic(P("XXX"))
    }
    
    // Test that panic while panicking discards error message
    // See issue 52257
    type exampleError struct{}
    
    func (e exampleError) Error() string {
    	panic("important multi-line\nerror message")
    }
    
    func ErrorPanic() {
    	panic(exampleError{})
    }
    
    type examplePanicError struct{}
    
    func (e examplePanicError) Error() string {
    	panic(exampleError{})
    }
    
    func DoubleErrorPanic() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 19:10:41 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  8. internal/logger/target/console/console.go

    	}
    
    	if len(entry.Trace.Variables) > 0 {
    		tagString = "\n       " + tagString
    	}
    
    	msg := color.RedBold(entry.Trace.Message)
    	output := fmt.Sprintf("\n%s\n%s%s%s%s%s%s\nError: %s%s\n%s",
    		apiString, timeString, deploymentID, requestID, remoteHost, host, userAgent,
    		msg, tagString, strings.Join(trace, "\n"))
    
    	fmt.Fprintln(c.output, output)
    	return nil
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  9. cmd/kubeadm/app/cmd/phases/reset/removeetcdmember_test.go

    			} else {
    				dataDir, err = getEtcdDataDir(manifestPath, nil)
    			}
    
    			if (err != nil) != test.expectErr {
    				t.Fatalf(dedent.Dedent(
    					"getEtcdDataDir failed\n%s\nexpected error: %t\n\tgot: %t\nerror: %v"),
    					name,
    					test.expectErr,
    					(err != nil),
    					err,
    				)
    			}
    
    			if dataDir != test.dataDir {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Aug 26 03:55:19 UTC 2022
    - 3.2K bytes
    - Viewed (0)
  10. tensorflow/compiler/aot/tfcompile_main.cc

        return 0;
      }
      bool parsed_flags_ok = tensorflow::Flags::Parse(&argc, argv, flag_list);
      QCHECK(parsed_flags_ok) << "\n" << usage;
    
      tensorflow::port::InitMain(usage.c_str(), &argc, &argv);
      QCHECK(argc == 1) << "\nERROR: This command does not take any arguments "
                           "other than flags. See --help.\n\n";
      tensorflow::Status status = tensorflow::tfcompile::Main(flags);
      if (status.code() == absl::StatusCode::kInvalidArgument) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 3.6K bytes
    - Viewed (0)
Back to top