 
 import Foundation
 import ReactiveCocoa
+import ReactiveTask
 
 /// Possible errors that can originate from Carthage.
 public enum CarthageError {

	/// A cartfile contains duplicate dependencies, either in itself or across
	/// other cartfiles.
	case DuplicateDependencies([DuplicateDependency])
}

extension CarthageError: Printable {

				}

			return "The following dependencies are duplicates:\(deps)"

		case let .TaskError(taskError):
			return taskError.description
		}
	}
}

extension CarthageError: ErrorType {
	public var nsError: NSError {
		switch self {
		case let .TaskError(taskError):
			return taskError.nsError

		default:
			return NSError(domain: "org.carthage.CarthageKit", code: 0, userInfo: [
				NSLocalizedDescriptionKey: description
			])
		}
	}
}

