From 657a5c85cc45ce8c9ccd33de80aebd652aea742c Mon Sep 17 00:00:00 2001 From: robgics <32717310+robgics@users.noreply.github.com> Date: Mon, 16 Aug 2021 17:25:41 -0400 Subject: Improve license err msg (#24117) * Add to the error message to help determine failure source. * Break up long line to keep under 80 chars. Co-authored-by: Rob Groner --- lib/spack/spack/cmd/license.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/spack/spack/cmd/license.py b/lib/spack/spack/cmd/license.py index 8af0f4fa26..3627b35391 100644 --- a/lib/spack/spack/cmd/license.py +++ b/lib/spack/spack/cmd/license.py @@ -175,7 +175,8 @@ def _check_license(lines, path): if error: return error - print('{0}: the license does not match the expected format'.format(path)) + print('{0}: the license header at the top of the file does not match the \ + expected format'.format(path)) return GENERAL_MISMATCH -- cgit v1.2.3-60-g2f50