UNPKG
neft
Version:
latest (0.11.23)
0.11.23
0.11.22
0.11.21
0.11.20
0.11.19
0.11.18
0.11.17
0.11.16
0.11.15
0.11.14
0.11.13
0.11.12
0.11.11
0.11.10
0.11.9
0.11.8
0.11.7
0.11.6
0.11.4
0.11.3
0.11.2
0.11.1
0.11.0
0.10.4
0.10.3
0.10.2
0.10.1
0.9.13
0.9.12
0.9.11
0.9.10
0.9.9
0.9.8
0.9.7
0.9.6
0.9.5
0.9.4
0.9.3
0.9.2
0.9.1
0.9.0
0.8.27
0.8.26
0.8.25
0.8.24
0.8.23
0.8.22
0.8.21
0.8.20
0.8.19
0.8.18
0.8.17
0.8.16
0.8.15
0.8.14
0.8.13
0.8.12
0.8.11
0.8.1
0.8.0
0.0.1
JavaScript. Everywhere.
neft.io
Neft-io/neft
neft
/
lib
/
unit
/
error.coffee
15 lines
(12 loc)
•
298 B
text/coffeescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
'use strict'
exports
.
toString
= (err) -> msg =
''
if
err.
stack
msg += err.
stack
unitStackIndex = msg.
indexOf
'/src/unit/stack.coffee'
if
unitStackIndex >=
0
msg = msg.
slice
(
0
, unitStackIndex) +
'…'
else
msg += err msg +=
'\n'
msg