Write string into window to simplify the error search and Show error in alert window