catch build error and ask to display the log