summaryrefslogtreecommitdiff
path: root/tests/in/invalid_tuner_annotations.yaml
diff options
context:
space:
mode:
authorDominik Holland <dominik.holland@qt.io>2022-01-27 10:42:52 +0100
committerDominik Holland <dominik.holland@googlemail.com>2022-01-27 13:50:04 +0100
commit3703c77aa9014aeff71ea455710cc627cd5c562c (patch)
treec562a691fdb48b37b7161b4c0a407e8a4c9669fb /tests/in/invalid_tuner_annotations.yaml
parent71f21afe3afce5a86f9908b8854170c8c19e05c7 (diff)
downloadqtivi-qface-3703c77aa9014aeff71ea455710cc627cd5c562c.tar.gz
Improve error handling when parsing annotation files
The System.lookup() function is now throwing an exception when the name couldn't be found, instead of just returning None. This exception is catched in the FileSystem object and printed on stderr. In strict mode, any annotation error results in exiting the generator. Fixes: #90
Diffstat (limited to 'tests/in/invalid_tuner_annotations.yaml')
-rw-r--r--tests/in/invalid_tuner_annotations.yaml3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/in/invalid_tuner_annotations.yaml b/tests/in/invalid_tuner_annotations.yaml
new file mode 100644
index 0000000..564aaf4
--- /dev/null
+++ b/tests/in/invalid_tuner_annotations.yaml
@@ -0,0 +1,3 @@
+com.pelagicore.ivi.tuner.Tunerrrrrrrr:
+ extra:
+ extraA: true