Skip to content

Commit 5d61f9d

Browse files
committed
feat: report generic error instead of verification error
1 parent d1c2309 commit 5d61f9d

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/index.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import { CID } from 'multiformats'
22

33
import { extractVerifiedContent } from './utils/car.js'
44
import { asAsyncIterable, asyncIteratorToBuffer } from './utils/itr.js'
5-
import { VerificationError } from './utils/errors.js'
65
import { randomUUID } from './utils/uuid.js'
76

87
class Saturn {
@@ -111,9 +110,7 @@ class Saturn {
111110
const itr = metricsIterable(asAsyncIterable(res.body))
112111
yield * extractVerifiedContent(cidPath, itr)
113112
} catch (err) {
114-
// Assume verification error but could be a false positive.
115-
log.verificationError = err.message
116-
113+
log.error = err.message
117114
throw err
118115
} finally {
119116
this._finalizeLog(log)

0 commit comments

Comments
 (0)