crihook; fix forgotten error check

This commit is contained in:
Ed Bartosh 2019-09-16 12:50:29 +03:00
parent a6b3a217e8
commit 73ac87cd8d

View File

@ -270,6 +270,9 @@ func (he *hookEnv) process(reader io.Reader) error {
defer bitstream.Close()
err = port.PR(bitstream, false)
if err != nil {
return err
}
programmedAfu = port.GetAcceleratorTypeUUID()