Skip to content

Commit 085cc97

Browse files
Update FirebaseAI/Sources/AILog.swift
Co-authored-by: Andrew Heard <[email protected]>
1 parent 98a2ba4 commit 085cc97

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

FirebaseAI/Sources/AILog.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,8 @@ enum AILog {
142142
@available(iOS 15.0, macOS 12.0, macCatalyst 15.0, tvOS 15.0, watchOS 8.0, *)
143143
static func makeInternalError(message: String, code: MessageCode) -> GenerateContentError {
144144
let error = GenerateContentError.internalError(underlying: NSError(
145-
domain: "com.google.generative-ai",
146-
code: -1,
145+
domain: "\(Constants.baseErrorDomain).Internal",
146+
code: code.rawValue,
147147
userInfo: [NSLocalizedDescriptionKey: message]
148148
))
149149
AILog.error(code: code, message)

0 commit comments

Comments
 (0)