Remove any in error handling

This commit is contained in:
William Oldham
2024-03-15 19:42:51 +00:00
parent 327f175241
commit 8e179e4455
4 changed files with 8 additions and 8 deletions

View File

@@ -90,11 +90,11 @@ const handler: PlasmoMessaging.MessageHandler<Request, Response<any>> = async (r
finalUrl: response.url,
},
});
} catch (err: any) {
} catch (err) {
console.error('failed request', err);
res.send({
success: false,
error: err instanceof Error ? err.message : err,
error: err instanceof Error ? err.message : String(err),
});
}
};