good morning!!!!

Skip to content
Snippets Groups Projects
Commit 5f3792c2 authored by Péter Szilágyi's avatar Péter Szilágyi Committed by Jeffrey Wilcke
Browse files

cmd/geth: decent error message if metrics are disabled

parent 01fe9721
No related branches found
No related tags found
No related merge requests found
......@@ -79,7 +79,7 @@ func monitor(ctx *cli.Context) {
if len(list) > 0 {
utils.Fatalf("No metrics specified.\n\nAvailable:\n - %s", strings.Join(list, "\n - "))
} 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)
......
......@@ -23,7 +23,6 @@ import (
"github.com/ethereum/go-ethereum/pow"
"github.com/ethereum/go-ethereum/rlp"
"github.com/hashicorp/golang-lru"
"github.com/rcrowley/go-metrics"
"github.com/syndtr/goleveldb/leveldb"
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment