summaryrefslogtreecommitdiff
path: root/compiler/GHC/Driver/MakeFile.hs
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/GHC/Driver/MakeFile.hs')
-rw-r--r--compiler/GHC/Driver/MakeFile.hs5
1 files changed, 2 insertions, 3 deletions
diff --git a/compiler/GHC/Driver/MakeFile.hs b/compiler/GHC/Driver/MakeFile.hs
index b54bbbea3e..220e1bf5b2 100644
--- a/compiler/GHC/Driver/MakeFile.hs
+++ b/compiler/GHC/Driver/MakeFile.hs
@@ -288,9 +288,8 @@ findDependency hsc_env srcloc pkg imp is_boot include_pkg_deps
-> return Nothing
fail ->
- let dflags = hsc_dflags hsc_env
- in throwOneError $ mkPlainErrMsg dflags srcloc $
- cannotFindModule hsc_env imp fail
+ throwOneError $ mkPlainErrMsg srcloc $
+ cannotFindModule hsc_env imp fail
}
-----------------------------