forked from Mirror/pmbootstrap
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:
parent
cc80c75fbf
commit
c164532f4e
1 changed files with 5 additions and 1 deletions
|
@ -28,7 +28,11 @@ def run(args, action, flavor=None):
|
||||||
cfg = pmb.config.flashers[method]
|
cfg = pmb.config.flashers[method]
|
||||||
if action not in cfg["actions"]:
|
if action not in cfg["actions"]:
|
||||||
raise RuntimeError("action " + action + " is not"
|
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
|
# Variable setup
|
||||||
vars = pmb.flasher.variables(args, flavor, method)
|
vars = pmb.flasher.variables(args, flavor, method)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue