mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-18 22:54:25 +01:00
type_to_string: detect type failure in DEVELOPER mode.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
committed by
Christian Decker
parent
2736e997f6
commit
1f8564ffae
@@ -33,6 +33,9 @@ const char *type_to_string_(const tal_t *ctx, const char *typename,
|
||||
break;
|
||||
}
|
||||
}
|
||||
#if DEVELOPER
|
||||
assert(s);
|
||||
#endif
|
||||
if (!s)
|
||||
s = tal_fmt(ctx, "UNKNOWN TYPE %s", typename);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user