mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-06-17 03:59:15 -04:00
More helpful error messages for missing config
This commit is contained in:
parent
ab0637c2c3
commit
d45f89c95b
3 changed files with 29 additions and 6 deletions
|
@ -60,7 +60,7 @@ class ServerConfig(Config):
|
|||
" service on the given port.")
|
||||
|
||||
def read_signing_key(self, signing_key_path):
|
||||
signing_key_base64 = self.read_file(signing_key_path)
|
||||
signing_key_base64 = self.read_file(signing_key_path, "signing_key")
|
||||
signing_key_bytes = decode_base64(signing_key_base64)
|
||||
return nacl.signing.SigningKey(signing_key_bytes)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue