Skip to content

Commit 31a84f0

Browse files
committed
Merge pull request #155 from theotherjimmy/better-compile-error
Enhanced error message in compile command
2 parents 8722248 + b0ee385 commit 31a84f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mbed/mbed.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1689,7 +1689,7 @@ def compile(toolchain=None, mcu=None, source=False, build=False, compile_library
16891689
with cd(program.path):
16901690
mbed_tools_path = program.get_tools_dir()
16911691
if not mbed_tools_path:
1692-
error('The mbed tools were not found in "%s".' % program.path, -1)
1692+
error('The mbed tools were not found in "%s". \n Run `mbed deploy` to install dependencies and tools. ' % program.path, -1)
16931693
tools_dir = os.path.abspath(mbed_tools_path)
16941694

16951695
target = mcu if mcu else program.get_cfg('TARGET')

0 commit comments

Comments
 (0)