toastdotdev / toast

The best place to stack your JAM. Toast is a Jamstack framework
153 stars 13 forks source link

if static directory doesn't exist, site breaks #6

Closed ChristopherBiscardi closed 3 years ago

ChristopherBiscardi commented 3 years ago
5:00:59 PM: Error:
5:00:59 PM:    0: Path "/opt/build/repo/static" does not exist or you don't have access!
pantharshit00 commented 3 years ago

Full backtrace for easier debugging later on:

Error:
   0: Path "/Users/harshit/code/www.toast.dev/static" does not exist or you don't have access!

  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ BACKTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   1: backtrace::backtrace::trace::h3729ea2eeb4de15d
      at <unknown source file>
   2: backtrace::capture::Backtrace::new::h260f4c57a9cab442
      at <unknown source file>
   3: color_eyre::config::HookBuilder::install::{{closure}}::hd55bf64ae0c1a9f4
      at <unknown source file>
   4: toast::incremental::incremental_compile::{{closure}}::{{closure}}::hda5637bcd6ad0a27
      at <unknown source file>
   5: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll::h3469cad8f37c94f0
      at <unknown source file>
   6: scoped_tls::ScopedKey<T>::set::h9478ee3313461bab
      at <unknown source file>
   7: async_executor::LocalExecutor::run::hc3ae514f1372f4c3
      at <unknown source file>
   8: scoped_tls::ScopedKey<T>::set::h3880f6d2feb5ad6c
      at <unknown source file>
   9: async_std::task::executor::enter::h0b680481443b4eac
      at <unknown source file>
  10: std::thread::local::LocalKey<T>::with::hafe67052edb4056f
      at <unknown source file>
  11: async_std::task::builder::Builder::blocking::hafc4095657c5feb8
      at <unknown source file>
  12: toast::main::h816f3f13879b54ff
      at <unknown source file>
  13: std::sys_common::backtrace::__rust_begin_short_backtrace::h184e94ad5f011dbc
      at <unknown source file>
  14: std::rt::lang_start::{{closure}}::hf62482372e7e2417
      at <unknown source file>
  15: std::rt::lang_start_internal::h5e1feb19f4099625
      at <unknown source file>
  16: _main
      at <unknown source file>

Run with COLORBT_SHOW_HIDDEN=1 environment variable to disable frame filtering.
pantharshit00 commented 3 years ago

PR: https://github.com/toastdotdev/toast/pull/16