# Hugo --panicOnWarning hangs forever

**URL:** <https://discourse.gohugo.io/t/hugo-paniconwarning-hangs-forever/36548>\
**Category:** support\
**Created:** [January 13, 2022, 12:09pm UTC](https://discourse.gohugo.io/t/hugo-paniconwarning-hangs-forever/36548 "2022-01-13T12:09:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![deining](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/deining/32/13944_2.png) [@deining](https://discourse.gohugo.io/u/deining)\
**Post date:** [January 13, 2022, 12:09pm UTC](https://discourse.gohugo.io/t/hugo-paniconwarning-hangs-forever/36548/1 "2022-01-13T12:09:01Z")

</div>

I just realized you released hugo 0.92. thanks for your continued work.

Using hugo 0.92, I can successfully build my site:

```auto
$ hugo
Start building sites …
hugo v0.92.0-B3549403+extended windows/amd64 BuildDate=2022-01-12T08:23:18Z VendorInfo=gohugoio
WARN 2022/01/13 12:56:26 .Path when the page is backed by a file is deprecated and will be removed in a future release. We plan to use Path for a canonical source path and you probably want to check the source is a file. To get the current behaviour, you can use a construct simlar to the below:

  {{ $path := "" }}
  {{ with .File }}
        {{ $path = .Path }}
  {{ else }}
        {{ $path = .Path }}
  {{ end }}

Re-run Hugo with the flag --panicOnWarning to get a better error message.
...

```

Since I want to know which page is causing the trouble, I’m now using the `--panicOnWarning` flag, as proposed.

```auto
hugo --panicOnWarning

```

However, after emitting the warning message, my build is stuck and hangs forever, and I don’t think this is the wanted behaviour here.

Fortunately, this happens with a publicly available site, so it should be easy to reproduce:

```auto
git clone --recurse-submodules --depth 1 https://github.com/google/docsy-example.git
cd docsy-example/
npm install
hugo --panicOnWarning

```

---

<div class="post-metadata">

**Author:** ![bep](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/bep/32/3332_2.png) [@bep](https://discourse.gohugo.io/u/bep)\
**Post date:** [January 13, 2022, 3:51pm UTC](https://discourse.gohugo.io/t/hugo-paniconwarning-hangs-forever/36548/2 "2022-01-13T15:51:08Z")

</div>

> <https://github.com/gohugoio/hugo/issues/9380>
>
> https://discourse.gohugo.io/t/hugo-paniconwarning-hangs-forever/36548
