Manager: also recognise exec.ErrNotFound as a "blender not found" error

This commit is contained in:
Sybren A. Stüvel 2022-08-02 13:35:48 +02:00
parent 8c43688fed
commit cbc6bfaf02

View File

@ -181,7 +181,7 @@ func (f *Flamenco) FindBlenderExePath(e echo.Context) error {
// There could be another Blender found on $PATH.
result, err := find_blender.CheckBlender(ctx, "blender")
switch {
case errors.Is(err, fs.ErrNotExist):
case errors.Is(err, fs.ErrNotExist), errors.Is(err, exec.ErrNotFound):
logger.Info().Msg("Blender could not be found as 'blender' on $PATH")
case err != nil:
logger.Info().Err(err).Msg("there was an error finding Blender as 'blender' on $PATH")