 		task.launch()
 		task.waitUntilExit()
 
-		let success = (task.terminationStatus == 0)
-		if !success && error != nil {
-			error.memory = NSError(domain:CarthageSpecErrorDomain, code:CarthageSpecErrorUnzipFailed, userInfo:[ NSLocalizedDescriptionKey: "Unzip failed" ]);
-		}
-
-		return success;
+		return task.terminationStatus == 0
 	}
 }

import Foundation
import Quick

let CarthageSpecErrorDomain = "CarthageSpecErrorDomain"

let CarthageSpecErrorUnzipFailed = -99

class CarthageSpec: QuickSpec {
	var tempDirectoryPath: NSString!

		return NSURL.fileURLWithPath("\(self.repositoryFixturesPath)/repositories/\(repositoryName)", isDirectory:true)!
	}

	func unzipFile(member: NSString, zipPath: NSString, destinationPath: NSString) -> Bool {
		let task = NSTask()
		task.launchPath = "/usr/bin/unzip"
		task.arguments = [ "-qq", "-d", destinationPath, zipPath, "repositories/\(member)*", "-x", "*/.DS_Store" ]
