mirror of
https://github.com/ilyakooo0/sc-build.git
synced 2024-12-17 23:01:34 +03:00
fixed non-printable characters
This commit is contained in:
parent
407ddde088
commit
b57d38b161
@ -16,6 +16,7 @@ import Control.Monad.IO.Unlift
|
|||||||
import Control.Task
|
import Control.Task
|
||||||
import Data.Aeson hiding (Success)
|
import Data.Aeson hiding (Success)
|
||||||
import qualified Data.ByteString.Lazy.Char8 as BS
|
import qualified Data.ByteString.Lazy.Char8 as BS
|
||||||
|
import Data.Char
|
||||||
import Data.String
|
import Data.String
|
||||||
import Data.Submission
|
import Data.Submission
|
||||||
import Data.Submission.Query
|
import Data.Submission.Query
|
||||||
@ -128,7 +129,7 @@ instance Task Build "build-repo" where
|
|||||||
return (buildCode, buildOut, buildErr)
|
return (buildCode, buildOut, buildErr)
|
||||||
case dockerRes of
|
case dockerRes of
|
||||||
(ExitFailure n, _, buildErr) -> do
|
(ExitFailure n, _, buildErr) -> do
|
||||||
let err = BS.unpack buildErr
|
let err = dropWhile (not . isPrint) . BS.unpack $ buildErr
|
||||||
logError . T.pack $
|
logError . T.pack $
|
||||||
"test command for repo " <> show fullRepoName <> " at sha "
|
"test command for repo " <> show fullRepoName <> " at sha "
|
||||||
<> show sha
|
<> show sha
|
||||||
|
Loading…
Reference in New Issue
Block a user