This is an automated email from the ASF dual-hosted git repository.

abhishek pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/druid.git


The following commit(s) were added to refs/heads/master by this push:
     new 32946216d0 Debugs Flaky License dependency Reports generation (#12744)
32946216d0 is described below

commit 32946216d08c61ddb07b651b7f9976efabdd95b6
Author: Tejaswini Bandlamudi <[email protected]>
AuthorDate: Mon Jul 11 14:35:34 2022 +0530

    Debugs Flaky License dependency Reports generation (#12744)
    
    * Surfaces mvn command output in case of failure.
    
    * formats output
    
    * nit
---
 distribution/bin/generate-license-dependency-reports.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/distribution/bin/generate-license-dependency-reports.py 
b/distribution/bin/generate-license-dependency-reports.py
index 461dc2ae48..36d6b09210 100755
--- a/distribution/bin/generate-license-dependency-reports.py
+++ b/distribution/bin/generate-license-dependency-reports.py
@@ -38,6 +38,9 @@ def generate_report(module_path, report_orig_path, 
report_out_path):
         command = "cp -r {} {}".format(report_orig_path, report_out_path)
         subprocess.check_output(command, cwd=module_path, shell=True)
         print("Generated report for {} in {}".format(module_path, 
report_out_path))
+    except subprocess.CalledProcessError as e:
+        print("Encountered error [{}] with the following output when 
generating report for {}".format(e, module_path))
+        print(e.output.decode('utf-8'))
     except Exception as e:
         print("Encountered error [{}] when generating report for {}".format(e, 
module_path))
 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to