Previously the loader would only report the first error. With this change, all syntax and type errors will be reported.