From e5bbca1533f923561b5785a4db302f780b2dc04d Mon Sep 17 00:00:00 2001 From: Eric Seidel Date: Tue, 13 Jan 2015 13:18:10 -0800 Subject: [PATCH] Make skydb start url error out nicely Both erg and abarth hit this lack-of-help this morning. R=abarth@chromium.org, erg@chromium.org Review URL: https://codereview.chromium.org/790793011 --- engine/src/flutter/tools/skydb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/engine/src/flutter/tools/skydb b/engine/src/flutter/tools/skydb index eca44490be..02c92412bb 100755 --- a/engine/src/flutter/tools/skydb +++ b/engine/src/flutter/tools/skydb @@ -141,10 +141,15 @@ class SkyDebugger(object): def start_command(self, args): # FIXME: Lame that we use self for a command-specific variable. self.paths = self._create_paths_for_build_dir(args.build_dir) - self.stop_command(None) # Quit any existing process. self.pids = {} # Clear out our pid file. + if not os.path.exists(self.paths.mojo_shell_path): + print "mojo_shell not found in build_dir '%s'" % args.build_dir + print "Are you sure you sure that's a valid build_dir location?" + print "See skydb start --help for more info" + sys.exit(2) + # FIXME: This is probably not the right way to compute is_android # from the build directory? gn_args = gn_args_from_build_dir(args.build_dir)