improve error messages
Change-Id: Idd69f619379c1fad29f5e7792d6832ab3c73bd12
diff --git a/review.go b/review.go
index 30b78b2..dc3bbd9 100644
--- a/review.go
+++ b/review.go
@@ -88,10 +88,11 @@
func create(name string) {
if !hasStagedChanges() {
- dief(`No staged changes. Did you forget to "git add" your files?\n`)
+ dief("No staged changes. Did you forget to \"git add\" your files?\n")
}
if !isOnMaster() {
- dief("You must run create from the master branch.\n")
+ dief("You must run create from the master branch. " +
+ "(\"git checkout master\".)")
}
fmt.Printf("Creating and checking out branch: %v\n", name)
run("git", "checkout", "-b", name)