Error Handler

also deleted some files that should be ignored by git