 	bower
 		.commands
 		.install components, {}, {directory: BOWER_DIRECTORY}
+		.on 'error', onError
 		.on 'end', (results) ->
 			deferred.resolve results
 

	gulp
		.src '**/*.jade', cwd: TEMP_DIRECTORY
		.pipe jade options
		.pipe gulp.dest TEMP_DIRECTORY

gulp.task 'karma', ->

	gulp
		.src '**/*.spec.{coffee,js}', cwd: E2E_DIRECTORY
		.pipe protractor.protractor options
		.on 'error', onError

gulp.task 'e2e-driver', protractor.webdriver_standalone

