return send_sb(scc, msg, ret, band, false);
}
+int send_strerror(struct command_context *cc, int err)
+{
+ return sc_send_va_buffer(&cc->scc, "%s\n", para_strerror(err));
+}
+
/**
* Send a sideband packet through a blocking file descriptor.
*
if (ret >= 0)
goto out;
err_out:
- sc_send_va_buffer(&cc->scc, "%s\n", para_strerror(-ret));
+ send_strerror(cc, -ret);
net_err:
PARA_NOTICE_LOG("%s\n", para_strerror(-ret));
out: