| 224 | } |
| 225 | |
| 226 | void master_badmsg(u32 type_expected, const u8 *msg) |
| 227 | { |
| 228 | if (!msg) |
| 229 | status_failed(STATUS_FAIL_MASTER_IO, |
| 230 | "failed reading msg %u: %s", |
| 231 | type_expected, strerror(errno)); |
| 232 | status_failed(STATUS_FAIL_MASTER_IO, |
| 233 | "Error parsing %u: %s", |
| 234 | type_expected, tal_hex(tmpctx, msg)); |
| 235 | } |
| 236 | |
| 237 | #if DEVELOPER |
| 238 | /* Print BROKEN status: callback for dump_memleak. */ |
no test coverage detected