Adding error handling to account for things like protected pages and edit conflicts

Minor syntax