Skip to content

Commit

Permalink
Fix syntax errors
Browse files Browse the repository at this point in the history
  • Loading branch information
milanvarady committed Jan 11, 2025
1 parent 987129c commit cd4e157
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Applite/Model/Cask Models/Cask Manager/CaskLoadError.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ enum CaskLoadError: LocalizedError {
return "Failed to load app catalog from cache, check your internet connection"
case .failedToLoadAdditionalInfo:
return "Failed to load additional info"
}
}

var failureReason: String? {
Expand All @@ -30,5 +31,6 @@ enum CaskLoadError: LocalizedError {
return "The file doesn't exist or couldn't be read"
case .failedToLoadAdditionalInfo:
return "The response object was empty"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ extension CaskManager {

guard let tapInfoRubyScriptPath = Bundle.main.path(forResource: "brew-tap-cask-info", ofType: "rb") else {
Self.logger.error("Failed to locate tap info ruby script")
return []
}

let arguments = [BrewPaths.currentBrewExecutable.quotedPath(), "ruby", tapInfoRubyScriptPath.paddedWithQuotes()]
Expand Down

0 comments on commit cd4e157

Please sign in to comment.