summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--roseh.moe.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/roseh.moe.go b/roseh.moe.go
index ea11aec..481da6b 100644
--- a/roseh.moe.go
+++ b/roseh.moe.go
@@ -62,6 +62,12 @@ func loadSecrets() error {
return fmt.Errorf("%s:%d unknown key", *secretsFile, p.LineNumber)
}
}
+ if len(notepadPassword) == 0 {
+ return fmt.Errorf("%s: missing notepad-password", *secretsFile)
+ }
+ if len(secretKey) == 0 {
+ return fmt.Errorf("%s: missing secret-key", *secretsFile)
+ }
return nil
}