diff options
author | Tom Pollard <tom.pollard@codethink.co.uk> | 2019-07-17 15:48:06 +0100 |
---|---|---|
committer | bst-marge-bot <marge-bot@buildstream.build> | 2019-07-18 11:36:07 +0000 |
commit | e7524c4340523d06ba3d6d95cb1e284b0f4b415e (patch) | |
tree | 271d658e2fcdb7917dfca3c1270a4c3f31e80d76 /src/buildstream/_exceptions.py | |
parent | d79747d7ee2596a73f4ec68bd40bd2ca04427a93 (diff) | |
download | buildstream-e7524c4340523d06ba3d6d95cb1e284b0f4b415e.tar.gz |
_exceptions.py: Align LoadError() parameter orderingtpollard/loaderror
All of the errors which subclass from BstError have their first
positional argument as message, LoadError should follow this
ordering for consistency.
Diffstat (limited to 'src/buildstream/_exceptions.py')
-rw-r--r-- | src/buildstream/_exceptions.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/buildstream/_exceptions.py b/src/buildstream/_exceptions.py index 034a5125a..0e20c512c 100644 --- a/src/buildstream/_exceptions.py +++ b/src/buildstream/_exceptions.py @@ -231,14 +231,14 @@ class LoadErrorReason(Enum): # Raised while loading some YAML. # # Args: -# reason (LoadErrorReason): machine readable error reason # message (str): human readable error explanation +# reason (LoadErrorReason): machine readable error reason # # This exception is raised when loading or parsing YAML, or when # interpreting project YAML # class LoadError(BstError): - def __init__(self, reason, message, *, detail=None): + def __init__(self, message, reason, *, detail=None): super().__init__(message, detail=detail, domain=ErrorDomain.LOAD, reason=reason) |