git.iko.soy/rowtype-yoga/purescript-native
on golang help sign in
Merge pull request #1810 from purescript/1786-fix-unknownmodule-missing-pos

Add position info to UnknownModule error

commit6fdf971a7856a2d1276bbf13120b20fb6b8d348b authorGary Burgess <gary.burgess@gmail.com> dateSat 9 Jan 2016, 23:07 (11 years ago) parent2d01b2b7ab867f
1 file changed+1−1
src/Language/PureScript/Sugar/Names/Imports.hs+1−1
src/Language/PureScript/Sugar/Names/Imports.hs+1−1
@@ -135,7 +135,7 @@ resolveImports env (Module ss coms currentModule decls exps) =
135135
136136 updateImportRef :: Declaration -> m Declaration
137137 updateImportRef (PositionedDeclaration pos com d) =
138− warnWithPosition pos $ PositionedDeclaration pos com <$> updateImportRef d
138+ warnAndRethrowWithPosition pos $ PositionedDeclaration pos com <$> updateImportRef d
139139 updateImportRef (ImportDeclaration mn typ qual isOldSyntax) = do
140140 modExports <- getExports env mn
141141 typ' <- case typ of