Pass copy of error list instead of direct reference
Merge pull request #327 from Ivoz/patch-1

Pass copy of error list instead of direct reference