package actionerror

import "fmt"

// RevisionNotFoundError is returned when a requested application is not
// found.
type RevisionNotFoundError struct {
	Version int
}

func (e RevisionNotFoundError) Error() string {
	return fmt.Sprintf("Revision (%d) not found", e.Version)
}

type RevisionAmbiguousError struct {
	Version int
}

func (e RevisionAmbiguousError) Error() string {
	return fmt.Sprintf("More than one revision (%d) found", e.Version)
}

package actionerror

import "fmt"

// RevisionNotFoundError is returned when a requested application is not
// found.
type RevisionNotFoundError struct {
	Version int
	App     string
}

func (e RevisionNotFoundError) Error() string {
	return fmt.Sprintf("Revision '%d' for app '%s' not found", e.Version, e.App)
}

type RevisionAmbiguousError struct {
	Version int
}

func (e RevisionAmbiguousError) Error() string {
	return fmt.Sprintf("More than one revision '%d' found", e.Version)
}

--- 
+++ 
@@ -6,11 +6,10 @@
 // found.
 type RevisionNotFoundError struct {
 	Version int
-	App     string
 }
 
 func (e RevisionNotFoundError) Error() string {
-	return fmt.Sprintf("Revision '%d' for app '%s' not found", e.Version, e.App)
+	return fmt.Sprintf("Revision (%d) not found", e.Version)
 }
 
 type RevisionAmbiguousError struct {
@@ -18,5 +17,5 @@
 }
 
 func (e RevisionAmbiguousError) Error() string {
-	return fmt.Sprintf("More than one revision '%d' found", e.Version)
+	return fmt.Sprintf("More than one revision (%d) found", e.Version)
 }
Change revision command error message format

[#174107413](https://www.pivotaltracker.com/story/show/174107413)

Co-authored-by: Lisa Burns <bf777798bf9b27b432e8740a4233c0b7af91e7d5@vmware.com>
Co-authored-by: Alexander Berezovsky <a12e46294a7d630b60bbba114755367d6bafe2fb@vmware.com>
