make: revert the config showing error change

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
This commit is contained in:
Jakub Sztandera 2016-12-20 20:23:51 +01:00
parent 73a711b2df
commit a15e9fd8c6
No known key found for this signature in database
GPG Key ID: 9A9AF56F8B3879BA

View File

@ -311,7 +311,7 @@ func editConfig(filename string) error {
func replaceConfig(r repo.Repo, file io.Reader) error {
var cfg config.Config
if err := json.NewDecoder(file).Decode(&cfg); err != nil {
return errors.New("failed to decode file as config: " + err.Error())
return errors.New("failed to decode file as config")
}
if len(cfg.Identity.PrivKey) != 0 {
return errors.New("setting private key with API is not supported")