Ghost
New
flaxo
/
ghost
public
forked from
ghost/ghost
Source code of Ghost - On Ghost
Star
0
Fork
0
Code
Issues
0
Pull requests
0
448f855
34
branches
Go to file
t
Code
ghost
apps
api
src
lib
git
exec
exec.errors.ts
removed slop
09daf9f
22 days ago
14 lines · 402 B
1
import
{
HttpStatus
}
from
'
@nestjs/common
'
;
2
import
{
DomainError
}
3
4
export
class
GitCommandFailedError
5
status
:
number
6
7
constructor
(
8
readonly
command
:
9
readonly
exitCode
:
10
readonly
stderr
:
11
)
{
12
super
(
`
git
${
command
13
}
14
}
from
'
../../../domain/errors.js
'
;
extends
DomainError
{
=
HttpStatus
.
INTERNAL_SERVER_ERROR
;
string
,
number
|
null
,
string
,
}
exited with
${
exitCode
}
:
${
stderr
}
`
)
;