Skip to content

Commit

Permalink
minor changes to compile error message
Browse files Browse the repository at this point in the history
  • Loading branch information
lukepistrol committed Jun 15, 2023
1 parent 54f1767 commit 42f76d5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Sources/SFSymbolsMacroImpl/SFSymbolsDiagnostic.swift
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ enum SFSymbolDiagnostic: DiagnosticMessage {
case .notAnEnum:
"Macro \"@SFSymbol\" can only be applied to enums."
case .missingStringProtocolConformance(let symbol):
"Enum \"\(symbol)\" needs conformance to String protocol."
"Enum \"\(symbol)\" must declare a raw value type of String."
}
}

Expand Down
2 changes: 1 addition & 1 deletion Tests/SFSymbolsMacroTests/SFSymbolsMacroTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ final class SFSymbolsMacroTests: XCTestCase {
}
""",
diagnostics: [
.init(message: "Enum \"Symbols\" needs conformance to String protocol.", line: 2, column: 6)
.init(message: "Enum \"Symbols\" must declare a raw value type of String.", line: 2, column: 6)
],
macros: testMacros
)
Expand Down

0 comments on commit 42f76d5

Please sign in to comment.