diff options
Diffstat (limited to 'clang')
| -rwxr-xr-x | clang/tools/scan-view/scan-view | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/clang/tools/scan-view/scan-view b/clang/tools/scan-view/scan-view index d12c251f8be..e005a26b40f 100755 --- a/clang/tools/scan-view/scan-view +++ b/clang/tools/scan-view/scan-view @@ -4,6 +4,7 @@ """ import sys +import posixpath import thread import time import urllib @@ -85,9 +86,13 @@ def main(): (options, args) = parser.parse_args() if len(args) != 1: - parser.error('invalid number of arguments.') + parser.error('No results directory specified.') root, = args + # Make sure this directory is in a reasonable state to view. + if not posixpath.exists(posixpath.join(root,'index.html')): + parser.error('Invalid directory, analysis results not found!') + # Kick off thread to wait for server and start web browser, if # requested. if options.startBrowser: |

