error if a device is not specified