add errors file to throw in client