Skip to content

Commit

Permalink
Merge pull request #62 from OpenKitten/public-bson-error
Browse files Browse the repository at this point in the history
Made `BSONValueNotFound` Error public
  • Loading branch information
Joannis authored Jul 15, 2020
2 parents bb46957 + 11f9955 commit d596940
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Sources/BSON/Document/Document+Helpers.swift
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,11 @@ extension Document {
}
}

struct BSONValueNotFound: Error, CustomStringConvertible {
let type: Any.Type
let path: [String]
public struct BSONValueNotFound: Error, CustomStringConvertible {
public let type: Any.Type
public let path: [String]

var description: String {
public var description: String {
return "Couldn't find type \(type) at path \"\(path)\""
}
}
Expand Down

0 comments on commit d596940

Please sign in to comment.