Adding error handling outside git repository