Skip to content

Crash when log_dir: points to an inaccessible location #132

@maddiemort

Description

@maddiemort

When I try to run tiny on macOS 10.15 (19A512f), it panics with this output:

Any mentions to you will be listed here.
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Os { code: 13, kind: PermissionDenied, message: "Permission denied" }', src/libcore/result.rs:1084:5
mentions                                                                                                                                                                    note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace.

Running with backtrace gives me:

Any mentions to you will be listed here.
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Os { code: 13, kind: PermissionDenied, message: "Permission denied" }', src/libcore/result.rs:1084:5
mentions                                                                                                                                                                    stack backtrace:
                                                                                                                                                                                               0: std::panicking::default_hook::{{closure}}
                           1: std::panicking::rust_panic_with_hook
                                                                     2: std::panicking::continue_panic_fmt
                                                                                                             3: rust_begin_unwind
                                                                                                                                    4: core::panicking::panic_fmt
                                                                                                                                                                    5: core::result::unwrap_failed
                                                                                                                                                                                                     6: tiny::Tiny::run
       7: tiny::main
                       8: std::rt::lang_start::{{closure}}
                                                             9: main

I built tiny with rustc 1.38.0-nightly (d3f8a0b5d 2019-08-04) from commit 35752a3.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions