mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-29 17:47:14 +02:00
Convert CleanPioEnvsError to warning
This commit is contained in:
@ -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():
|
||||
|
@ -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"
|
||||
|
Reference in New Issue
Block a user