When a user has signed up with Google, by clicking the big red button on https://stackoverflow.com/users/signup for example, that user might associate their email address "hendry@example.com" with that sign up.
However if the user then tries a fresh login and perhaps forgets they initially registered by pressing the Google red button, they might have a negative user experience; An incorrect password, when in fact no password was set.
My question is there a better user experience than this "The email or password is incorrect" error message? Couldn't the site lookup the email address and then redirect the user to using a Google login? If that is the case, why doesn't stack overflow do that?
P.S. I am aware the workaround is to reset your password, but I find that very clumsy.