display device name in error message