added server logging to file, added logging and formatting to info and lock commands
This commit is contained in:
@@ -19,7 +19,7 @@ func GetServerInfo(connectionString string, repoName string) error {
|
||||
}
|
||||
if resp.IsError() {
|
||||
if resp.StatusCode() == 404 {
|
||||
return fmt.Errorf("error: repo was not found on server, 404: %s", resp.Request.URL)
|
||||
return fmt.Errorf("repo was not found on server, 404: %s", resp.Request.URL)
|
||||
}
|
||||
return fmt.Errorf("response not a success: %d: connection URL: %s", resp.StatusCode(), resp.Request.URL)
|
||||
}
|
||||
|
Reference in New Issue
Block a user