Return an error if executing the browser command fails
This commit is contained in:
parent
82c601df7d
commit
49ce9d5433
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user