Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
abubasith86
/
hayat
like
0
Sleeping
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
main
hayat
/
utils
/
catchAsyncError.js
Mohamed Abu Basith
addded all files
97f53b4
2 months ago
raw
Copy download link
history
blame
contribute
delete
Safe
Wrap lines
158 Bytes
let
catchAsyncError
= (
fn
) => {
return
(
req, res, next
) =>
{
fn
(req, res, next).
catch
(
(
err
) =>
next
(err));
};
};
module
.
exports
= catchAsyncError;