Fix better error message when failing opening resource in load csv