mirror of
https://github.com/bbernhard/signal-cli-rest-api.git
synced 2026-06-09 17:00:17 +00:00
improved error handling in jsonrpc2-helper
This commit is contained in:
parent
6ca5ff1aee
commit
5c6fd14944
@ -47,6 +47,8 @@ func main() {
|
||||
signalMode := utils.GetEnv("MODE", "json-rpc")
|
||||
if signalMode == "json-rpc-native" {
|
||||
signalCliBinary = "signal-cli-native"
|
||||
} else if signalMode != "json-rpc" {
|
||||
log.Fatal("The mode needs to be either 'json-rpc' or 'json-rpc-native'")
|
||||
}
|
||||
|
||||
signalCliIgnoreAttachments := ""
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user