aDotInTheVoid / skate

Skateboard for the mind
Apache License 2.0
2 stars 0 forks source link

Panic on empty file or `/dev/null` #58

Open aDotInTheVoid opened 3 years ago

aDotInTheVoid commented 2 years ago

cargo r --bin skate /dev/null

thread 'main' panicked at 'no entry found for key', skate/compiler/src/lib.rs:59:20
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

https://github.com/aDotInTheVoid/skate/blob/f3230135f6be131c1720f1460d62969cef844bd2/skate/compiler/src/lib.rs#L59

This needs to be a get and return an error for no main