Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion Sources/FluentPostgresDriver/PostgresError+Database.swift
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,12 @@ extension PostgresError: DatabaseError {
}

public var isConnectionClosed: Bool {
return false
switch self {
case .connectionClosed:
return true
default:
return false
}
}

public var isConstraintFailure: Bool {
Expand Down