summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrobgics <32717310+robgics@users.noreply.github.com>2021-08-16 17:25:41 -0400
committerGitHub <noreply@github.com>2021-08-16 14:25:41 -0700
commit657a5c85cc45ce8c9ccd33de80aebd652aea742c (patch)
tree2d711e130d0578fc89843b025896b25f5f633682
parent437a272854f5de3148a738128203003f3a8a068d (diff)
downloadspack-657a5c85cc45ce8c9ccd33de80aebd652aea742c.tar.gz
spack-657a5c85cc45ce8c9ccd33de80aebd652aea742c.tar.bz2
spack-657a5c85cc45ce8c9ccd33de80aebd652aea742c.tar.xz
spack-657a5c85cc45ce8c9ccd33de80aebd652aea742c.zip
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 <rug262@psu.edu>
-rw-r--r--lib/spack/spack/cmd/license.py3
1 files changed, 2 insertions, 1 deletions
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