Skip to content

Commit

Permalink
Update MQ
Browse files Browse the repository at this point in the history
  • Loading branch information
KaQuMiQ authored Jun 16, 2023
1 parent 9585514 commit ca11993
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 11 deletions.
4 changes: 2 additions & 2 deletions Package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/miquido/MQ-iOS.git",
"state" : {
"revision" : "bb7df4bd85e3efb44dfb00a162ce785a87c27fab",
"version" : "0.12.0"
"revision" : "4705c6be12b9d63bc67f8beb8cd0168b7316782f",
"version" : "0.13.2"
}
}
],
Expand Down
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ let package = Package(
dependencies: [
.package(
url: "https://github.com/miquido/MQ-iOS.git",
.upToNextMajor(from: "0.12.0")
.upToNextMajor(from: "0.13.2")
)
],
targets: [
Expand Down
2 changes: 1 addition & 1 deletion Sources/MQDo/Errors/FeatureUnavailable.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public struct FeatureUnavailable: TheError {
/// - Returns: New instance of ``FeatureUnavailable`` error with given context.
public static func error(
message: StaticString = "FeatureUnavailable",
displayableMessage: DisplayableString = TheErrorDisplayableMessages.message(for: Self.self),
displayableMessage: DisplayableString,
feature: Any.Type,
file: StaticString = #fileID,
line: UInt = #line
Expand Down
6 changes: 1 addition & 5 deletions Sources/MQDo/Errors/FeaturesContainerUnavailable.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ public struct FeaturesContainerUnavailable: TheError {
/// - Returns: New instance of ``FeaturesContainerUnavailable`` error with given context.
public static func error(
message: StaticString = "FeaturesContainerUnavailable",
displayableMessage: DisplayableString = TheErrorDisplayableMessages.message(for: Self.self),
file: StaticString = #fileID,
line: UInt = #line
) -> Self {
Expand All @@ -27,13 +26,10 @@ public struct FeaturesContainerUnavailable: TheError {
message: message,
file: file,
line: line
),
displayableMessage: displayableMessage
)
)
}

/// Source code context of this error.
public var context: SourceCodeContext
/// String representation displayable to the end user.
public var displayableMessage: DisplayableString
}
4 changes: 2 additions & 2 deletions Sources/MQDo/Registry/FeatureLoader.swift
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ extension FeatureLoader {
public static func unavailable<Feature>(
_: Feature.Type = Feature.self,
message: StaticString = "Feature unavailable",
displayableMessage: DisplayableString = TheErrorDisplayableMessages.message(for: FeatureUnavailable.self),
displayableMessage: DisplayableString,
file: StaticString = #fileID,
line: UInt = #line
) -> Self
Expand Down Expand Up @@ -186,7 +186,7 @@ extension FeatureLoader {
public static func unavailable<Feature>(
_: Feature.Type = Feature.self,
message: StaticString = "Feature unavailable",
displayableMessage: DisplayableString = TheErrorDisplayableMessages.message(for: FeatureUnavailable.self),
displayableMessage: DisplayableString,
file: StaticString = #fileID,
line: UInt = #line
) -> Self
Expand Down

0 comments on commit ca11993

Please sign in to comment.