- Require index.html in provided results directory.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56423
91177308-0d34-0410-b5e6-
96231b3b80d8
"""
import sys
+import posixpath
import thread
import time
import urllib
(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: