 			$scope.pdf.projectTooLarge = false
 			$scope.pdf.compileTerminated = false
 			$scope.pdf.compileExited = false
+			$scope.pdf.failedCheck = false
 
 			# make a cache to look up files by name
 			fileByPath = {}

			params = {}
			if options.isAutoCompile
				params["auto_compile"]=true
			# keep track of whether this is a compile or check
			$scope.check = if options.check then true else false
			# send appropriate check type to clsi
			checkType = switch
				when $scope.check then "validate" # validate only
				when $scope.stop_on_validation_error then "error" # try to compile
				else "silent" # ignore errors
			return $http.post url, {

				$scope.pdf.view = 'pdf'
				$scope.pdf.url = last_pdf_url
				$scope.shouldShowLogs = true
				$scope.pdf.failedCheck = true if response.status is "validation-fail"
				fetchLogs(fileByPath, { validation: true })
			else if response.status == "exited"
				$scope.pdf.view = 'pdf'
