commit:     ba01bd910d9667dbc7a1a80873ec3a23d897ed62
Author:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
AuthorDate: Sat Jul 10 11:04:18 2021 +0000
Commit:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
CommitDate: Sat Jul 10 11:08:12 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ba01bd91

ghc-package.eclass: unify error message for unsupported EAPI

Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>

 eclass/ghc-package.eclass | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/eclass/ghc-package.eclass b/eclass/ghc-package.eclass
index e91fb2912f6..1d90c7fc383 100644
--- a/eclass/ghc-package.eclass
+++ b/eclass/ghc-package.eclass
@@ -14,10 +14,10 @@
 inherit multiprocessing
 
 # Maintain version-testing compatibility with ebuilds not using EAPI 7.
-case "${EAPI:-0}" in
+case ${EAPI} in
        7|8) ;;
        6) inherit eapi7-ver ;;
-       *) die "EAPI ${EAPI} unsupported." ;;
+       *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
 esac
 
 # GHC uses it's own native code generator. Portage's

Reply via email to