What could be the best method to override the core classes for the following scenario?.
I just want to change the error message thrown from a controller or from a model. For example, I want to change the login error message as 'Please sign in correctly' instead 'Invalid username or password'.
For this simple case should I use
plugin? Plugins may be used so that we can simply override the method itself. But is there any way which even simplifies the process for those kind of simple ovverriding?