mirror of
https://github.com/laosb/SwiftTailwind.git
synced 2025-11-28 22:01:38 +00:00
18 lines
433 B
Swift
18 lines
433 B
Swift
import Foundation
|
|
|
|
enum ArtifactBundleError: Error, LocalizedError {
|
|
case invalidURL(String)
|
|
case zipCreationFailed
|
|
case checksumComputationFailed
|
|
|
|
var errorDescription: String? {
|
|
switch self {
|
|
case .invalidURL(let url):
|
|
return "Invalid URL: \(url)"
|
|
case .zipCreationFailed:
|
|
return "Failed to create ZIP file"
|
|
case .checksumComputationFailed:
|
|
return "Failed to compute checksum"
|
|
}
|
|
}
|
|
}
|