Report errors based on user preference. All the cases taken care of.

Signed-off-by: Dhananjay Nakrani <dhananjaynakrani@gmail.com>
Add appropriate msgs & js functions to handle user actions.

Signed-off-by: Dhananjay Nakrani <dhananjaynakrani@gmail.com>