diff options
author | Erovia <Erovia@users.noreply.github.com> | 2021-05-27 17:42:38 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-27 17:42:38 +0100 |
commit | 84883d340045c50ce6c200c9087461c1db853898 (patch) | |
tree | 7cdcc263baa2fc387f0f622c431523a9ee6aa7ec /lib/python/qmk/errors.py | |
parent | 147cf8afbb3f7f9b09623c50e42fd3dec76d2147 (diff) | |
download | qmk_firmware-84883d340045c50ce6c200c9087461c1db853898.tar.gz qmk_firmware-84883d340045c50ce6c200c9087461c1db853898.zip |
CLI/c2json: Print 'cpp' error when executed in verbose mode (#12869)
Co-authored-by: Ryan <fauxpark@gmail.com>
Diffstat (limited to 'lib/python/qmk/errors.py')
-rw-r--r-- | lib/python/qmk/errors.py | 7 |
1 files changed, 7 insertions, 0 deletions
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 |