Improves error message for printing to an illegal location