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
9566a5d
34
branches
Go to file
t
Code
ghost
apps
api
src
lib
git
protocol
protocol.errors.ts
removed slop
09daf9f
22 days ago
15 lines · 451 B
1
import
{
HttpStatus
}
from
'
@nestjs/common
'
;
2
import
{
DomainError
}
3
4
export
class
InvalidReceivePackRequestError
5
status
:
number
6
7
constructor
(
detail
:
8
super
(
9
`
Malformed receive-pack request:
${
detail
}
`
10
(
body
11
?
`
(
${
body
.
12
:
''
)
,
13
)
;
14
}
15
}
from
'
../../../domain/errors.js
'
;
extends
DomainError
{
=
HttpStatus
.
BAD_REQUEST
;
string
,
body
?
:
Buffer
)
{
+
length
}
bytes, head=
${
body
.
subarray
(
0
,
48
)
.
toString
(
'
hex
'
)
}
)
`