Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F9583685
handle-error.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
296 B
Referenced Files
None
Subscribers
None
handle-error.js
View Options
"use strict"
;
const
error_to_boom
=
require
(
"./error-to-boom.js"
);
module
.
exports
=
function
(
app
,
h
)
{
return
function
(
error
)
{
app
.
Logger
.
error
(
error
);
if
(
error
instanceof
app
.
Sealious
.
Error
&&
error
.
is_user_fault
)
{
return
error_to_boom
(
error
);
}
else
{
return
error
;
}
};
};
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Oct 11, 10:25 (1 d, 11 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
982307
Default Alt Text
handle-error.js (296 B)
Attached To
Mode
rS Sealious
Attached
Detach File
Event Timeline
Log In to Comment