change: exit with InvalidPython3Venv code

This commit is contained in:
lilong.129
2023-08-20 13:21:39 +08:00
parent 00396d4b75
commit 226fb64a73
4 changed files with 9 additions and 4 deletions

View File

@@ -73,7 +73,7 @@ func initPlugin(path, venv string, logOn bool) (plugin funplugin.IPlugin, err er
log.Error().Err(err).
Interface("packages", packages).
Msg("python3 venv is not ready")
return nil, err
return nil, errors.Wrap(code.InvalidPython3Venv, err.Error())
}
pluginOptions = append(pluginOptions, funplugin.WithPython3(python3))
}