Skip to content

Commit

Permalink
Reuse versions in error message
Browse files Browse the repository at this point in the history
  • Loading branch information
jsoriano committed Jul 17, 2023
1 parent e42e627 commit 96964fa
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions internal/export/dashboards.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ package export

import (
"encoding/json"
"errors"
"fmt"
"os"
"path/filepath"
Expand Down Expand Up @@ -74,7 +73,7 @@ func checkKibanaVersion(info kibana.VersionInfo) error {
// See:
// - https://github.com/elastic/elastic-package/issues/1354
// - https://github.com/elastic/kibana/pull/161969
return errors.New("packages with dashboards exported since Kibana 8.8 may not be installed till 8.10, please export the dashboard/s from a different version")
return fmt.Errorf("packages with dashboards exported since Kibana %s may not be installed till %s, please export the dashboard/s from a different version", minVersion, maxVersion)
}
return nil
}
Expand Down

0 comments on commit 96964fa

Please sign in to comment.