From d70a90f1d54f551523322797b37efe61d7c76680 Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Tue, 19 Dec 2017 15:49:44 +0200 Subject: [PATCH] Explain that no need to use `sudo pio ...` --- platformio/commands/lib.py | 3 +-- platformio/exception.py | 3 ++- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/platformio/commands/lib.py b/platformio/commands/lib.py index ddb4c7e7..051720c6 100644 --- a/platformio/commands/lib.py +++ b/platformio/commands/lib.py @@ -33,8 +33,7 @@ from platformio.util import get_api_result "-g", "--global", is_flag=True, - help="Manage global PlatformIO" - " library storage `%s`" % join(util.get_home_dir(), "lib")) + help="Manage global PlatformIO library storage") @click.option( "-d", "--storage-dir", diff --git a/platformio/exception.py b/platformio/exception.py index b38e91da..4a1bdc66 100644 --- a/platformio/exception.py +++ b/platformio/exception.py @@ -226,7 +226,8 @@ class UpgradeError(PlatformioException): class HomeDirPermissionsError(PlatformioException): MESSAGE = "You do not have permissions to PlatformIO home directory.\n"\ - "Please remove `{0}` folder manually and repeat operation." + "Please remove `{0}` folder manually and avoid using " + "`sudo pio ...`." class CygwinEnvDetected(PlatformioException):