Convert CleanPioEnvsError to warning

This commit is contained in:
Ivan Kravets
2016-01-28 00:37:16 +02:00
parent df8fda5b69
commit d44d757985
2 changed files with 6 additions and 7 deletions

View File

@ -57,7 +57,12 @@ def cli(ctx, environment, target, upload_port, # pylint: disable=R0913,R0914
try:
_clean_pioenvs_dir(util.get_pioenvs_dir())
except Exception:
raise exception.CleanPioenvsDirError(util.get_pioenvs_dir())
click.secho(
"Can not remove temporary directory `%s`. Please remove "
"`.pioenvs` directory from the project manually to avoid "
"build issues" % util.get_pioenvs_dir(),
fg="yellow"
)
results = []
for section in config.sections():

View File

@ -129,12 +129,6 @@ class UnknownEnvNames(PlatformioException):
MESSAGE = "Unknown environment names '{0}'. Valid names are '{1}'"
class CleanPioenvsDirError(PlatformioException):
MESSAGE = "Can not remove temporary directory `{0}`. "\
"Please remove it manually"
class GetSerialPortsError(PlatformioException):
MESSAGE = "No implementation for your platform ('{0}') available"