Error handling for peepdf errors