mirror of
https://github.com/dillonkearns/elm-pages-v3-beta.git
synced 2024-12-25 12:52:27 +03:00
Change error message string.
This commit is contained in:
parent
a210fcfd35
commit
03315da320
@ -91,7 +91,7 @@ decoder =
|
|||||||
|> Decode.map Article
|
|> Decode.map Article
|
||||||
|
|
||||||
_ ->
|
_ ->
|
||||||
Decode.fail <| "Unexpected page type " ++ pageType
|
Decode.fail <| "Unexpected page \"type\" " ++ pageType
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
@ -27,7 +27,7 @@ module.exports = class AddFilesPlugin {
|
|||||||
this.filesToGenerate = filesToGenerate;
|
this.filesToGenerate = filesToGenerate;
|
||||||
}
|
}
|
||||||
apply(/** @type {webpack.Compiler} */ compiler) {
|
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);
|
const files = globby.sync("content").map(unpackFile);
|
||||||
|
@ -773,6 +773,10 @@ application config =
|
|||||||
_ ->
|
_ ->
|
||||||
case decodeValue |> Decode.decodeValue (Decode.field "contentJson" contentJsonDecoder) of
|
case decodeValue |> Decode.decodeValue (Decode.field "contentJson" contentJsonDecoder) of
|
||||||
Ok contentJson ->
|
Ok contentJson ->
|
||||||
|
let
|
||||||
|
_ =
|
||||||
|
Debug.log "HotReloadComplete" ""
|
||||||
|
in
|
||||||
AppMsg (HotReloadComplete contentJson)
|
AppMsg (HotReloadComplete contentJson)
|
||||||
|
|
||||||
Err error ->
|
Err error ->
|
||||||
|
Loading…
Reference in New Issue
Block a user