 //
-//  Error.swift
+//  MAError.swift
 //  mas-cli
 //
 //  Created by Andrew Naylor on 21/08/2015.


import Foundation

public enum MASError: Error, CustomStringConvertible, Equatable {
    case notSignedIn
    case signInDisabled
    case signInFailed(error: NSError?)

    case urlEncoding
    case noData
    case jsonParsing(error: NSError?)
}

// MARK: - CustomStringConvertible
extension MASError: CustomStringConvertible {
    public var description: String {
        switch self {
        case .notSignedIn:
