Return an error if executing the browser command fails

This commit is contained in:
lordwelch 2020-12-06 12:08:29 -08:00
parent 82c601df7d
commit 49ce9d5433

View File

@ -222,7 +222,10 @@ func (p ProviderConfig) Authenticate(t *OAuth2Token) error {
}
//TODO Drop privileges
exec.Command(c[0], c[1:]...).Start()
err = exec.Command(c[0], c[1:]...).Start()
if err != nil {
return err
}
go func() {
server.Serve(listener)