UNPKG
llearn
Version:
latest (0.1.6)
0.1.6
0.1.5
0.1.4
0.1.3
0.1.1
0.0.12
0.0.10
0.0.9
0.0.8
0.0.7
Bad-ass developers create awesome apps
github.com/perezLamed/lamed_learn
perezLamed/lamed_learn
llearn
/
templates
/
JSN
/
js
/
error
/
Uncaught_Exception_error.js
10 lines
(9 loc)
•
335 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
// Uncaught Exception thrown!
process .
on
(
'unhandledRejection'
,
(
reason, p
) =>
{
console
.
error
(reason,
'Unhandled Rejection at Promise'
, p); }) .
on
(
'uncaughtException'
,
err
=>
{
console
.
error
(err,
'Uncaught Exception thrown!'
); process.
exit
(
1
); });