Browse code

Rename user visible errors to s2i or source-to-image

Clayton Coleman authored on 2015/05/16 02:44:28
Showing 3 changed files
... ...
@@ -64,7 +64,7 @@ func (s *STIBuilder) Build() error {
64 64
 		printRequest.PullAuthentication.Password = "[filtered]"
65 65
 		glog.Infof("Using provided pull secret for pulling %s image", request.BaseImage)
66 66
 	}
67
-	glog.V(2).Infof("Creating a new STI builder with build request: %#v\n", printRequest)
67
+	glog.V(2).Infof("Creating a new S2I builder with build request: %#v\n", printRequest)
68 68
 	builder, err := sti.GetStrategy(request)
69 69
 	if err != nil {
70 70
 		return err
... ...
@@ -324,7 +324,7 @@ func TestGenerateBuildWithImageTagForSourceStrategyImageRepository(t *testing.T)
324 324
 		t.Fatalf("Unexpected error %v", err)
325 325
 	}
326 326
 	if build.Parameters.Strategy.SourceStrategy.From.Name != newImage {
327
-		t.Errorf("STI base image value %s does not match expected value %s", build.Parameters.Strategy.SourceStrategy.From.Name, newImage)
327
+		t.Errorf("source-to-image base image value %s does not match expected value %s", build.Parameters.Strategy.SourceStrategy.From.Name, newImage)
328 328
 	}
329 329
 }
330 330
 
... ...
@@ -28,7 +28,7 @@ func (e GenerationError) Error() string {
28 28
 	case CouldNotDetect:
29 29
 		return "could not detect a build type from the source."
30 30
 	case NoBuilderFound:
31
-		return "could not find a builder to match the STI source repository."
31
+		return "could not find a builder to match the source-to-image source repository."
32 32
 	case InvalidDockerfile:
33 33
 		return "invalid Dockerfile. Does not contain a FROM clause."
34 34
 	case ImageNotFound: