Raise error with useful message
Fixes #1 parsing vector layer