FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
nodegit/lib/error.js at v0.0.4 · nodegit/nodegit · GitHub
nodegit
nodegit
Repository navigation
Code
Issues
344
(344)
Pull requests
21
(21)
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
nodegit
/
lib
/
error.js
Copy path
More file actions
More file actions
Latest commit
History
History
History
22 lines (17 loc) · 354 Bytes
Breadcrumbs
nodegit
/
lib
/
error.js
Copy path
File metadata and controls
22 lines (17 loc) · 354 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
var
git
=
require
(
'../'
)
;
var
_Error
=
function
(
obj
)
{
var
self
=
{
}
;
if
(
obj
instanceof
git
.
raw
.
Error
)
{
self
.
error
=
obj
;
}
else
{
if
(
!
self
.
error
)
{
self
.
error
=
new
git
.
raw
.
Error
(
)
;
}
if
(
typeof
obj
===
'number'
)
{
return
self
.
error
.
strError
(
obj
)
;
}
}
return
self
;
}
;
exports
.
error
=
_Error
;
Back
|
FazBrowse Home
|
New Git URL