diff options
| author | Teddy Wing | 2015-01-11 19:01:52 -0500 | 
|---|---|---|
| committer | Teddy Wing | 2015-01-11 19:01:52 -0500 | 
| commit | 15bf95e6862ebb9bab17ee09b8e2886c746c9a70 (patch) | |
| tree | 1c60c36dcf54e7141f6f3b6e8c219d2936386d95 /utils | |
| parent | ea3a584741f18764d622cf4bd4e8940b4c2f346f (diff) | |
| download | git-checkout-history-15bf95e6862ebb9bab17ee09b8e2886c746c9a70.tar.bz2 | |
utils.go: Change error message when no history file
When getting a list of branches but the file doesn't exist, print a
custom error message that informs users that it's necessary to run
`git-checkout-store` before `git-checkout-history` will be able to do
anything.
Diffstat (limited to 'utils')
| -rw-r--r-- | utils/utils.go | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/utils/utils.go b/utils/utils.go index 52af88a..5f686f7 100644 --- a/utils/utils.go +++ b/utils/utils.go @@ -70,7 +70,7 @@ func Branches() []string {  	file_path := getHomeDir() + "/" + history_file  	data, err := ioutil.ReadFile(file_path)  	if err != nil { -		log.Fatal(err) +		log.Fatal("ERROR: No checkout history file. Run `checkout-store` to create it.")  	}  	err = yaml.Unmarshal(data, &branchList) | 
