show error log when preview or generate file