From 84883d340045c50ce6c200c9087461c1db853898 Mon Sep 17 00:00:00 2001 From: Erovia Date: Thu, 27 May 2021 17:42:38 +0100 Subject: CLI/c2json: Print 'cpp' error when executed in verbose mode (#12869) Co-authored-by: Ryan --- lib/python/qmk/errors.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'lib/python/qmk/errors.py') diff --git a/lib/python/qmk/errors.py b/lib/python/qmk/errors.py index 4a8a91556b..1317687821 100644 --- a/lib/python/qmk/errors.py +++ b/lib/python/qmk/errors.py @@ -3,3 +3,10 @@ class NoSuchKeyboardError(Exception): """ def __init__(self, message): self.message = message + + +class CppError(Exception): + """Raised when 'cpp' cannot process a file. + """ + def __init__(self, message): + self.message = message -- cgit v1.2.3