cloudflare / Stout

A reliable static website deploy tool
MIT License
751 stars 29 forks source link

Broken links in HTML files causes panic #28

Open renandincer opened 8 years ago

renandincer commented 8 years ago

It would be better if it exited cleanly, notifying the user of the situation.

panic: open /Users/renandincer/eager/sampleweb4/page/mystyle.css: no such file or directory

goroutine 1 [running]:
panic(0x452bc0, 0xc820019ef0)
    /usr/local/Cellar/go/1.6.2/libexec/src/runtime/panic.go:481 +0x3e6
main.must(0x4e6000, 0x0, 0x8a47e8, 0xc820019ef0, 0x0, 0x0)
    /private/tmp/stout-20160708-61273-tzo1mk/Stout-1.2.2/src/github.com/eagerio/stout/src/utils.go:86 +0x57
main.hashFile(0xc820010e80, 0x34, 0x0, 0x0, 0x0)
    /private/tmp/stout-20160708-61273-tzo1mk/Stout-1.2.2/src/github.com/eagerio/stout/src/deploy.go:49 +0x1d4
main.hashFiles(0xc820010ec0, 0x4, 0x4, 0x0, 0x0)
    /private/tmp/stout-20160708-61273-tzo1mk/Stout-1.2.2/src/github.com/eagerio/stout/src/deploy.go:67 +0x11a
main.Deploy(0x4f95b0, 0x1, 0x7fff5fbff9ac, 0x23, 0x4f9778, 0x2, 0x0, 0x0, 0x0, 0x0, ...)
    /private/tmp/stout-20160708-61273-tzo1mk/Stout-1.2.2/src/github.com/eagerio/stout/src/deploy.go:582 +0x15f7
main.deployCmd()
    /private/tmp/stout-20160708-61273-tzo1mk/Stout-1.2.2/src/github.com/eagerio/stout/src/deploy.go:636 +0x137
main.main()
    /private/tmp/stout-20160708-61273-tzo1mk/Stout-1.2.2/src/github.com/eagerio/stout/src/cli.go:39 +0x3e3
zackbloom commented 8 years ago

👍

On Fri, Jul 15, 2016 at 2:46 PM, Renan Dincer notifications@github.com wrote:

It would be better if it exited cleanly, notifying the user of the situation.

panic: open /Users/renandincer/eager/sampleweb4/page/mystyle.css: no such file or directory

goroutine 1 [running]: panic(0x452bc0, 0xc820019ef0) /usr/local/Cellar/go/1.6.2/libexec/src/runtime/panic.go:481 +0x3e6 main.must(0x4e6000, 0x0, 0x8a47e8, 0xc820019ef0, 0x0, 0x0) /private/tmp/stout-20160708-61273-tzo1mk/Stout-1.2.2/src/github.com/eagerio/stout/src/utils.go:86 +0x57 main.hashFile(0xc820010e80, 0x34, 0x0, 0x0, 0x0) /private/tmp/stout-20160708-61273-tzo1mk/Stout-1.2.2/src/github.com/eagerio/stout/src/deploy.go:49 +0x1d4 main.hashFiles(0xc820010ec0, 0x4, 0x4, 0x0, 0x0) /private/tmp/stout-20160708-61273-tzo1mk/Stout-1.2.2/src/github.com/eagerio/stout/src/deploy.go:67 +0x11a main.Deploy(0x4f95b0, 0x1, 0x7fff5fbff9ac, 0x23, 0x4f9778, 0x2, 0x0, 0x0, 0x0, 0x0, ...) /private/tmp/stout-20160708-61273-tzo1mk/Stout-1.2.2/src/github.com/eagerio/stout/src/deploy.go:582 +0x15f7 main.deployCmd() /private/tmp/stout-20160708-61273-tzo1mk/Stout-1.2.2/src/github.com/eagerio/stout/src/deploy.go:636 +0x137 main.main() /private/tmp/stout-20160708-61273-tzo1mk/Stout-1.2.2/src/github.com/eagerio/stout/src/cli.go:39 +0x3e3

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/EagerIO/Stout/issues/28, or mute the thread https://github.com/notifications/unsubscribe-auth/AADYMzVyddl7sR_wB1sY3HlHS4gHoQq8ks5qV9WagaJpZM4JNriD .