add comment

This commit is contained in:
Hongbo Wu
2024-01-09 12:09:42 +08:00
parent 0969e81de3
commit 131261431d

View File

@ -185,6 +185,8 @@ const parseFeed = async (url: string, content: string) => {
}
}
// return await is needed to catch errors thrown by the parser
// otherwise the error will be caught by the outer try catch
return await parser.parseString(content)
} catch (error) {
console.log(error)