prometheus/cmd/promtool
Bartlomiej Plotka 3d8826a3d4
MultiError: Refactored MultiError for more concise and safe usage. (#8066)
* MultiError: Refactored MultiError for more concise and safe usage.

* Less lines
* Goland IDE was marking every usage of old MultiError "potential nil" error
* It was easy to forgot using Err() when error was returned, now it's safely assured on compile time.

NOTE: Potentially I would rename package to merrors. (: In different PR.

Signed-off-by: Bartlomiej Plotka <bwplotka@gmail.com>

* Addressed review comments.

Signed-off-by: Bartlomiej Plotka <bwplotka@gmail.com>

* Addressed comments.

Signed-off-by: Bartlomiej Plotka <bwplotka@gmail.com>

* Fix after rebase.

Signed-off-by: Bartlomiej Plotka <bwplotka@gmail.com>
2020-10-28 15:24:58 +00:00
..
testdata promtool: Calculate mint and maxt per test (#8096) 2020-10-24 12:03:55 +01:00
archive.go Make file permissions set to allow for wider umask options. (#7782) 2020-08-12 23:23:17 +02:00
debug.go collect cpu and trace profiles with the promtool debug command (#4897) 2018-11-23 17:57:31 +02:00
main_test.go Move away from testutil, refactor imports (#8087) 2020-10-22 11:00:08 +02:00
main.go Move away from testutil, refactor imports (#8087) 2020-10-22 11:00:08 +02:00
tsdb.go MultiError: Refactored MultiError for more concise and safe usage. (#8066) 2020-10-28 15:24:58 +00:00
unittest_test.go promtool: Calculate mint and maxt per test (#8096) 2020-10-24 12:03:55 +01:00
unittest.go promtool: Calculate mint and maxt per test (#8096) 2020-10-24 12:03:55 +01:00