[master 1/1] Raise an error if osimg cannot be found (#1248673)