Prevent interaction problems from occurring in the first place; either eliminate error prone conditions to check for them and prevent users with a confirmation dialogue.
Examples
When you misspell something you will see red squiggly lines signifying an error
If you are typing in a password and capslock is on then you will see an icon signifying that capslock is on which could have been an accident