mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-01-12 22:45:52 +08:00
chore(version-info): better error msg if not tags
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user