Skip to content

Commit

Permalink
Remove trailing punctuations in ertor messages
Browse files Browse the repository at this point in the history
  • Loading branch information
iBug committed Jan 4, 2024
1 parent 5da3e6c commit 0e7b4f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/inputs/kernel/kernel.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,13 @@ func (k *Kernel) Init() error {
if k.optCollect["ksm"] {
if _, err := os.Stat(k.ksmStatsDir); os.IsNotExist(err) {
// ksm probably not enabled in the kernel, bail out early
return fmt.Errorf("directory %q does not exist. Is KSM enabled in this kernel?", k.ksmStatsDir)
return fmt.Errorf("directory %q does not exist. KSM is unavailable on this kernel", k.ksmStatsDir)
}
}
if k.optCollect["psi"] {
if _, err := os.Stat(k.psiDir); os.IsNotExist(err) {
// psi probably not supported in the kernel, bail out early
return fmt.Errorf("directory %q does not exist. Is PSI enabled in this kernel?", k.psiDir)
return fmt.Errorf("directory %q does not exist. PSI is unavailable on this kernel", k.psiDir)
}
}
return nil
Expand Down

0 comments on commit 0e7b4f7

Please sign in to comment.