From b235192f5a8eaf7c8594b7018a24cd912d9897a6 Mon Sep 17 00:00:00 2001 From: Philippe Proulx Date: Tue, 15 Mar 2016 20:29:03 -0400 Subject: [PATCH] Fix: config: packet context type is mandatory and must be a struct Signed-off-by: Philippe Proulx --- barectf/config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/barectf/config.py b/barectf/config.py index 078ae3c..bc0e4cf 100644 --- a/barectf/config.py +++ b/barectf/config.py @@ -394,10 +394,10 @@ class _MetadataSpecialFieldsValidator: t = stream.packet_context_type if type(t) is None: - return + raise ConfigError('missing "packet-context-type" property in stream object') if type(t) is not metadata.Struct: - return + raise ConfigError('"packet-context-type": expecting a structure type') # "timestamp_begin", if exists, is an unsigned integer type, # mapped to a clock -- 2.34.1