scalar-unregister: handle error codes greater than 0
commitadedcee8115038913ad551d88a9a040973066d4d
authorVictoria Dye <vdye@github.com>
Thu, 18 Aug 2022 21:40:47 +0000 (18 21:40 +0000)
committerJunio C Hamano <gitster@pobox.com>
Fri, 19 Aug 2022 04:35:31 +0000 (18 21:35 -0700)
treec888df36b6154e43a8565b2f6b5b7f75144b976b
parent65f6a9eb0b9b38ca10b4e6a2b02671036981195f
scalar-unregister: handle error codes greater than 0

When 'scalar unregister' tries to disable maintenance and remove an
enlistment, ensure that the return value is nonzero if either operation
produces *any* nonzero return value, not just when they return a value less
than 0.

Signed-off-by: Victoria Dye <vdye@github.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/scalar/scalar.c