add digest class to error