Fixed some errors in error messages in mainwin.c.