Commit 0192bfe
Graham Whaley
metrics: report: fix subdir check in makereport
An early change slide in a stderr re-direct that broke the check
in the good case as well.
Fix that by moving the stderr redirect. Also, drop the chdir as it
is not needed, and can fail in itself.
Whilst here, improve the error message for when we do fail the dir
check.
Fixes: clearcontainers#776
Signed-off-by: Graham Whaley <graham.whaley@intel.com>1 parent 6d3520f commit 0192bfe
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| |||
0 commit comments