better error message during file loading

This PR introduces a small change to provide better error message reporting during file loading. There is no functionality change in this PR.

Merge request reports

Loading