Add info about --method to error message (#1469)

Use case: "--method adb" missing when trying to flash recovery zip:
$ pmbootstrap install --android-recovery-zip
$ pmbootstrap flasher sideload
This commit is contained in:
Attila Szöllősi 2018-05-06 12:18:35 +02:00 committed by Oliver Smith
parent cc80c75fbf
commit c164532f4e

View file

@ -28,7 +28,11 @@ def run(args, action, flavor=None):
cfg = pmb.config.flashers[method]
if action not in cfg["actions"]:
raise RuntimeError("action " + action + " is not"
" configured for method " + method + "!")
" configured for method " + method + "!"
" You can use the '--method' option to specify a"
" different flash method. See also:"
" <https://wiki.postmarketos.org/wiki/"
"Deviceinfo_flash_methods>")
# Variable setup
vars = pmb.flasher.variables(args, flavor, method)