ovn-nbctl: Report the actual error from the command handler.
Fix a typo that went undetected by tests because we don't have any test
cases for error paths when using database commands with ovn-nbctl.
Fixes: ("db-ctl-base: Extend ctl_context with an error message.")
@@ -3843,7 +3843,7 @@ do_nbctl(const char *args, struct ctl_command *commands, size_t n_commands,
(c->syntax->run)(&ctx);
}
if (ctx.error) {
- ctl_fatal("%s", error);
+ ctl_fatal("%s", ctx.error);
}
ctl_context_done_command(&ctx, c);
