Fix Javascript error handling message
Merge pull request #3871 from gunjanpatel/updateJSFix

Fix Javascript error handling message during update