Check return values from load() separately so we can report parse errors. Call pcall no more than once to avoid triggering side effects twice.