Show More
@@ -1386,7 +1386,10 b' def serve(ui, repo, **opts):' | |||||
1386 | if opts[o]: |
|
1386 | if opts[o]: | |
1387 | ui.setconfig("web", o, opts[o]) |
|
1387 | ui.setconfig("web", o, opts[o]) | |
1388 |
|
1388 | |||
1389 | httpd = hgweb.create_server(repo) |
|
1389 | try: | |
|
1390 | httpd = hgweb.create_server(repo) | |||
|
1391 | except socket.error, inst: | |||
|
1392 | raise util.Abort('cannot start server: ' + inst.args[1]) | |||
1390 |
|
1393 | |||
1391 | if ui.verbose: |
|
1394 | if ui.verbose: | |
1392 | addr, port = httpd.socket.getsockname() |
|
1395 | addr, port = httpd.socket.getsockname() |
General Comments 0
You need to be logged in to leave comments.
Login now