Skip to content

Commit 6caab7a

Browse files
committed
attach ScrapeConfig object to raised exceptions that aren't of ScrapflyError type, addresses #4
1 parent 2b92fa9 commit 6caab7a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/client.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,7 @@ export class ScrapflyClient {
195195
);
196196
} catch (e) {
197197
log.error('error', e);
198+
e.scrapeConfig = config;
198199
throw e;
199200
}
200201
const data = await response.json();

0 commit comments

Comments
 (0)