SetError sets the error err on the pipe.
(err error)
| 861 | |
| 862 | // SetError sets the error err on the pipe. |
| 863 | func (p *Pipe) SetError(err error) { |
| 864 | if p.mu == nil { // uninitialised pipe |
| 865 | return |
| 866 | } |
| 867 | p.mu.Lock() |
| 868 | defer p.mu.Unlock() |
| 869 | p.err = err |
| 870 | } |
| 871 | |
| 872 | // SHA256Sum returns the hex-encoded SHA-256 hash of the entire contents of the |
| 873 | // pipe, or an error. |
no outgoing calls