display proper error on invalid device