Skip to content

Commit

Permalink
Bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielFillol committed Oct 12, 2022
1 parent f817bfd commit d6a6357
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion CNJ/decomposer.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,19 @@ func DecomposeCNJ(cnj string) (DecomposedCNJ, error) {

dt, err := CNJDatabase.FetchDistrict(semiCNJ)
if err != nil {
return DecomposedCNJ{}, err
if err != nil {
return DecomposedCNJ{
LawsuitNumber: lawsuitNumber,
VerifyingDigit: verifyingDigit,
ProtocolYear: yearProtocol,
Segment: segment,
Court: court,
SourceUnit: sourceUnit,
ArgNumber: argNumber,
District: err.Error(),
UF: err.Error(),
}, err
}
}

return DecomposedCNJ{
Expand Down

0 comments on commit d6a6357

Please sign in to comment.