Improving error handling/reporting during flow loading