I think the main mistake here is to not have anticipated that it would be a problem and, as such, should have been presented to the boss with care and, ideally, with a solution (you should have looked for someone who would have been ok to switch schedule with you or something). Silver lining...