Closed angeloashmore closed 1 year ago
Merging #316 (e002238) into master (76fa2ca) will not change coverage. The diff coverage is
100.00%
.
:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.
@@ Coverage Diff @@
## master #316 +/- ##
=======================================
Coverage 99.96% 99.96%
=======================================
Files 50 50
Lines 6045 6045
Branches 294 294
=======================================
Hits 6043 6043
Misses 2 2
Files Changed | Coverage Δ | |
---|---|---|
src/createClient.ts | 100.00% <100.00%> (ø) |
Types of changes
Description
This PR fixes
getFirst()
and all dependent methods, includinggetByUID()
andgetByID()
, by throwing aNotFoundError
when a matching document is not found.NotFoundError
is a subclass ofPrismicError
, retaining compatibility withinstanceof PrismicError
.Before:
After:
Checklist:
🦁