Enforce a single daemon per geth home
This commit is contained in:
parent
f61cb44dad
commit
ed007a0632
6 changed files with 90 additions and 5 deletions
|
|
@ -1721,6 +1721,8 @@ fn json_error_code(detail: &str) -> &'static str {
|
|||
let lower = detail.to_ascii_lowercase();
|
||||
if lower.contains("connect to daemon") || lower.contains("connection refused") {
|
||||
"daemon_unavailable"
|
||||
} else if lower.contains("daemon is already running") {
|
||||
"daemon_already_running"
|
||||
} else if lower.contains("unauthorized") || lower.contains("missing grant") {
|
||||
"unauthorized"
|
||||
} else if lower.contains("peer candidate not found") {
|
||||
|
|
|
|||
Loading…
Reference in a new issue