mailing: urlwatcher's body's message
This commit is contained in:
@@ -17,7 +17,7 @@ export function urlWatcher(conf: Conf, checkValidity: (data: any) => Promise<Url
|
|||||||
async function checkResult(data: any) {
|
async function checkResult(data: any) {
|
||||||
const validity = await checkValidity(data)
|
const validity = await checkValidity(data)
|
||||||
if (validity.error) {
|
if (validity.error) {
|
||||||
throw new UrlWatcherError('Validity error')
|
throw new UrlWatcherError(validity.error)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user