Skip to content

Commit 358326b

Browse files
committed
chore: return 1 if the subcommand fails
1 parent 6719faa commit 358326b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/main.cc

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,11 +147,9 @@ int main(int argc, char *argv[]) {
147147
rkque_guard{rkqu, &rd_kafka_queue_destroy};
148148

149149
if (program.is_subcommand_used(topics.handle())) {
150-
topics.run(rk, rkqu);
150+
return topics.run(rk, rkqu) ? 0 : 1;
151151
} else {
152152
std::cerr << "Invalid subcommand\n" << program << std::endl;
153153
return 1;
154154
}
155-
156-
return 0;
157155
}

0 commit comments

Comments
 (0)