Skip to content

Commit

Permalink
Merge pull request #4 from eschlon/master
Browse files Browse the repository at this point in the history
Fixed typos in server start and type error in message
  • Loading branch information
akmittal authored Sep 23, 2016
2 parents 03adbe1 + da58c0a commit 2c025e8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Hugofy.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,9 @@ def run(self,edit):
server=settings.get("Server")
theme=settings.get("DefaultTheme")
try:
out=subprocess.Popen("hugo server --theme="+theme+"--buildDrafts --watch --port="+server["PORT"],stderr=subprocess.STDOUT,universal_newlines=True)
sublime.status_message(out)
startCmd = "hugo server --theme={} --buildDrafts --watch --port={}".format(theme, server["PORT"])
out=subprocess.Popen(startCmd,stderr=subprocess.STDOUT,universal_newlines=True)
sublime.status_message('Server Started: {}'.format(startCmd))
except:
sublime.error_message("Error starting server")

Expand Down

0 comments on commit 2c025e8

Please sign in to comment.