@@ -106,11 +106,11 @@ instance Pretty NewPrettyException where
106106 where
107107 (msg, isNotFound) = case err of
108108 DownloadHttpError (HttpExceptionRequest req content) ->
109- let msg' = flow " an HTTP exception . Stack made the request:"
109+ let msg' = flow " an HTTP error . Stack made the request:"
110110 <> blankLine
111111 <> fromString (show req)
112112 <> blankLine
113- <> flow " and the content of the exception was:"
113+ <> flow " and the content of the error was:"
114114 <> blankLine
115115 <> fromString (show content)
116116 isNotFound404 = case content of
@@ -120,13 +120,13 @@ instance Pretty NewPrettyException where
120120 in (msg', isNotFound404)
121121 DownloadHttpError (InvalidUrlException url' reason) ->
122122 let msg' = fillSep
123- [ flow " an HTTP exception . The URL"
123+ [ flow " an HTTP error . The URL"
124124 , style Url (fromString url')
125125 , flow " was considered invalid because"
126126 , fromString reason <> " ."
127127 ]
128128 in (msg', False )
129- _ -> let msg' = flow " the following exception :"
129+ _ -> let msg' = flow " the following error :"
130130 <> blankLine
131131 <> fromString (displayException err)
132132 in (msg', False )
@@ -149,7 +149,7 @@ instance Pretty NewPrettyException where
149149 , style File (pretty path) <> " ."
150150 ]
151151 <> blankLine
152- <> flow " While extracting, Stack encountered the following exception :"
152+ <> flow " While extracting, Stack encountered the following error :"
153153 <> blankLine
154154 <> string err
155155 pretty (TemplateInvalid name why) =
@@ -208,7 +208,7 @@ instance Pretty NewPrettyException where
208208 , style Shell " stack templates" <> " ."
209209 ]
210210 <> blankLine
211- <> flow " While downloading, Stack encountered the following exception :"
211+ <> flow " While downloading, Stack encountered the following error :"
212212 <> blankLine
213213 <> string (displayException err)
214214 pretty (TemplatesHelpEncodingInvalid url err) =
@@ -221,7 +221,7 @@ instance Pretty NewPrettyException where
221221 , style Url (fromString url) <> " ."
222222 ]
223223 <> blankLine
224- <> flow " While decoding, Stack encountered the following exception :"
224+ <> flow " While decoding, Stack encountered the following error :"
225225 <> blankLine
226226 <> string (displayException err)
227227
@@ -519,7 +519,7 @@ applyTemplate project template nonceParams dir templateText = do
519519 Left e -> throwM $ PrettyException $
520520 TemplateInvalid
521521 template
522- ( flow " Stack encountered the following exception :"
522+ ( flow " Stack encountered the following error :"
523523 <> blankLine
524524 -- Text.Parsec.Error.ParseError is not an instance
525525 -- of Control.Exception.
0 commit comments