main.js: polish error messages.