spack compiler info exit 1 when no compilers are found (#28493)
fixes #28492
This commit is contained in:
		| @@ -120,7 +120,7 @@ def compiler_info(args): | ||||
|     compilers = spack.compilers.compilers_for_spec(cspec, scope=args.scope) | ||||
| 
 | ||||
|     if not compilers: | ||||
|         tty.error("No compilers match spec %s" % cspec) | ||||
|         tty.die("No compilers match spec %s" % cspec) | ||||
|     else: | ||||
|         for c in compilers: | ||||
|             print(str(c.spec) + ":") | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Logan Harbour
					Logan Harbour