summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--shapeshifter-dispatcher/shapeshifter-dispatcher.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/shapeshifter-dispatcher/shapeshifter-dispatcher.go b/shapeshifter-dispatcher/shapeshifter-dispatcher.go
index 0addd8a..731f729 100644
--- a/shapeshifter-dispatcher/shapeshifter-dispatcher.go
+++ b/shapeshifter-dispatcher/shapeshifter-dispatcher.go
@@ -131,9 +131,11 @@ func main() {
launched := false
isClient, err := checkIsClient(*clientMode, *serverMode)
if err != nil {
+ flag.Usage()
golog.Fatalf("[ERROR]: %s - either --client or --server is required, or configure using PT 2.0 environment variables", execName)
}
if stateDir, err = makeStateDir(*statePath); err != nil {
+ flag.Usage()
golog.Fatalf("[ERROR]: %s - No state directory: Use --state or TOR_PT_STATE_LOCATION environment variable", execName)
}
if err = log.Init(*enableLogging, path.Join(stateDir, dispatcherLogFile), *unsafeLogging); err != nil {