schovi / baked_file_system

Virtual File System for Crystal language. Embedding your assets into final binary.
MIT License
177 stars 18 forks source link

non informative error when not existed dir #4

Closed kostya closed 6 years ago

kostya commented 7 years ago

when not existed dir, or when dir without /

BakedFileSystem.load("some/dir")
Index out of bounds (IndexError)
[4722391] *CallStack::unwind:Array(Pointer(Void)) +87
[4722282] *CallStack#initialize:Array(Pointer(Void)) +10
[4722234] *CallStack::new:CallStack +42
[4624936] *raise<IndexError>:NoReturn +24
[4843950] *Array(String) +110
[4843830] *Array(String) +6
[4580913] ???
[4640393] main +41
[140590357159621] __libc_start_main +245
[4576649] ???
[0] ???
Wulfklaue commented 6 years ago

Confusing error is still happening with Crystal 24.1...

straight-shoota commented 6 years ago

11 is pending with a fix for this.

@schovi are you available for review?