Send error msg to log for build query error catch