Proper use of new-school CustomError detail