Skip to content

Commit 2a6f27f

Browse files
committed
Fixed output message to user regarding requirements
Added error code to error message that a program is not found in the current path
1 parent f6434dd commit 2a6f27f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mbed/mbed.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -848,7 +848,7 @@ def __init__(self, path=None, print_warning=False):
848848
err = (
849849
"Could not find mbed program in current path. Assuming current dir.\n"
850850
"You can fix this by calling \"mbed new .\" in the root dir of your program")
851-
return warning(err) if print_warning else error(err)
851+
return warning(err) if print_warning else error(err, 1)
852852

853853
# Sets config value
854854
def set_cfg(self, var, val):
@@ -934,7 +934,7 @@ def post_clone(self):
934934
"mbed OS and tools in this program require Python modules that are not installed.\n"
935935
"This might prevent you from compiling your code or exporting to IDEs and other toolchains.\n"
936936
"The missing Python modules are: %s\n"
937-
"You can install all missing modules by opening a command prompt in \"%s\" and running \"pip install %s\"" % (', '.join(missing), mbed_os_path, fname))
937+
"You can install all missing modules by opening a command prompt in \"%s\" and running \"pip install -r %s\"" % (', '.join(missing), mbed_os_path, fname))
938938

939939

940940
def formaturl(url, format="default"):

0 commit comments

Comments
 (0)