ed: better error handling

Add more precise errors for date parsing and calendars