Change error message string.

This commit is contained in:
Dillon Kearns 2020-05-04 14:00:33 -07:00
parent a210fcfd35
commit 03315da320
3 changed files with 6 additions and 2 deletions

View File

@ -91,7 +91,7 @@ decoder =
|> Decode.map Article
_ ->
Decode.fail <| "Unexpected page type " ++ pageType
Decode.fail <| "Unexpected page \"type\" " ++ pageType
)

View File

@ -27,7 +27,7 @@ module.exports = class AddFilesPlugin {
this.filesToGenerate = filesToGenerate;
}
apply(/** @type {webpack.Compiler} */ compiler) {
compiler.hooks.make.tapAsync("AddFilesPlugin", (compilation, callback) => {
compiler.hooks.emit.tapAsync("AddFilesPlugin", (compilation, callback) => {
const files = globby.sync("content").map(unpackFile);

View File

@ -773,6 +773,10 @@ application config =
_ ->
case decodeValue |> Decode.decodeValue (Decode.field "contentJson" contentJsonDecoder) of
Ok contentJson ->
let
_ =
Debug.log "HotReloadComplete" ""
in
AppMsg (HotReloadComplete contentJson)
Err error ->