diff options
author | Bryan Quigley <code@bryanquigley.com> | 2020-08-11 21:25:48 -0700 |
---|---|---|
committer | Jake Hunsaker <jhunsake@redhat.com> | 2020-08-13 10:14:16 -0400 |
commit | 110852f0f7394a180029eabfb7d204000e168412 (patch) | |
tree | 9f8e423554da937a47b4eeb35cfc56c32cf78575 | |
parent | 1c7faf96d4773b05745b0b5628f2ec2da8e144a2 (diff) | |
download | sos-110852f0f7394a180029eabfb7d204000e168412.tar.gz |
[general] better error message
Resolves: #2196
Signed-off-by: Bryan Quigley <code@bryanquigley.com>
Signed-off-by: Jake Hunsaker <jhunsake@redhat.com>
-rw-r--r-- | .travis.yml | 6 | ||||
-rw-r--r-- | sos/report/plugins/__init__.py | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/.travis.yml b/.travis.yml index eaca2d06..d1e986d9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,7 +4,7 @@ jobs: os: linux dist: focal language: shell - install: sudo apt-get update; sudo apt install pycodestyle python3-pexpect; + install: sudo apt-get update; sudo apt install flake8 python3-pexpect; script: - "flake8 sos tests bin/*" - "sudo ./tests/simple.sh" @@ -12,7 +12,7 @@ jobs: os: linux dist: bionic language: shell - install: sudo apt-get update; sudo apt install pycodestyle python3-pexpect; + install: sudo apt-get update; sudo apt install python3-pexpect; script: "sudo ./tests/simple.sh" - name: "18.04 native run for arm64" os: linux @@ -62,4 +62,4 @@ notifications: - "us.freenode.net#sosreport" on_success: change git: - depth: 5 + depth: 20 diff --git a/sos/report/plugins/__init__.py b/sos/report/plugins/__init__.py index 3650a60a..71448795 100644 --- a/sos/report/plugins/__init__.py +++ b/sos/report/plugins/__init__.py @@ -2021,8 +2021,8 @@ class SCLPlugin(RedHatPlugin): prefix = open('/etc/scl/prefixes/%s' % scl, 'r').read()\ .rstrip('\n') except Exception as e: - self._log_error("Error %s to find prefix for SCL %s, using %s" - % (e, scl, prefix)) + self._log_error("Failed to find prefix for SCL %s using %s: %s" + % (scl, prefix, e)) # expand PATH by equivalent prefixes under the SCL tree path = os.environ["PATH"] |