Browse Source

util/winutil: add some missing docs to restartmgr errors

Just a quick #cleanup.

Signed-off-by: Aaron Klotz <[email protected]>
Aaron Klotz 2 years ago
parent
commit
aed2cfec4e
1 changed files with 5 additions and 0 deletions
  1. 5 0
      util/winutil/restartmgr_windows.go

+ 5 - 0
util/winutil/restartmgr_windows.go

@@ -23,7 +23,12 @@ import (
 )
 
 var (
+	// ErrDefunctProcess is returned by (*UniqueProcess).AsRestartableProcess
+	// when the process no longer exists.
 	ErrDefunctProcess        = errors.New("process is defunct")
+	// ErrProcessNotRestartable is returned by (*UniqueProcess).AsRestartableProcess
+	// when the process has previously indicated that it must not be restarted
+	// during a patch/upgrade.
 	ErrProcessNotRestartable = errors.New("process is not restartable")
 )