DeviceUtils: Fix crash when creating error message for a non-userdebugdevice

BUG=

Review URL: https://codereview.chromium.org/1339683002

Cr-Original-Commit-Position: refs/heads/master@{#348450}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 76ba5bfcf815b6710381b549436d3272fb3565b2
This commit is contained in:
agrieve 2015-09-11 11:47:17 -07:00 коммит произвёл Commit bot
Родитель b68cbe8352
Коммит 2a3d4ed349
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -33,7 +33,7 @@ def InstallCommands(device):
if device.IsUserBuild():
raise device_errors.CommandFailedError(
'chromium_commands currently requires a userdebug build.',
device_serial=device.GetDeviceSerial())
device_serial=device.adb.GetDeviceSerial())
chromium_commands_jar_path = os.path.join(
constants.GetOutDirectory(), constants.SDK_BUILD_JAVALIB_DIR,