mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-23 13:16:42 +00:00
cmd/geth: decent error message if metrics are disabled
This commit is contained in:
parent
199c44bde9
commit
99879ea5d2
1 changed files with 1 additions and 1 deletions
|
|
@ -79,7 +79,7 @@ func monitor(ctx *cli.Context) {
|
||||||
if len(list) > 0 {
|
if len(list) > 0 {
|
||||||
utils.Fatalf("No metrics specified.\n\nAvailable:\n - %s", strings.Join(list, "\n - "))
|
utils.Fatalf("No metrics specified.\n\nAvailable:\n - %s", strings.Join(list, "\n - "))
|
||||||
} else {
|
} else {
|
||||||
utils.Fatalf("No metrics specified.\n\nNo metrics collected (--metrics)\n")
|
utils.Fatalf("No metrics collected by geth (--%s).\n", utils.MetricsEnabledFlag.Name)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
sort.Strings(monitored)
|
sort.Strings(monitored)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue