chore(version-info): better error msg if not tags

This commit is contained in:
Peter Bacon Darwin
2014-03-12 19:22:32 +00:00
parent f684cb09a5
commit edad4e63df

View File

@@ -136,6 +136,12 @@ var getSnapshotVersion = function() {
})
.last();
if ( !version ) {
throw new Error("No valid versions can be found that match the current branch (" +
currentPackage.branchVersion + ").\n" +
"Try running `git fetch -t` to download the tags from the repository.");
}
// We need to clone to ensure that we are not modifying another version
version = semver(version.raw);