Skip to content

Commit fd055db

Browse files
committed
send back error.result on failed api calls
1 parent b5c8f77 commit fd055db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

example/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ app.get('/scraper', async (req, res) => {
1111
const data = await ogs(options);
1212
res.send(data);
1313
} catch (error) {
14-
res.send(error);
14+
res.send(error.result);
1515
}
1616
});
1717

0 commit comments

Comments
 (0)