We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f684cb0 commit edad4e6Copy full SHA for edad4e6
lib/versions/version-info.js
@@ -136,6 +136,12 @@ var getSnapshotVersion = function() {
136
})
137
.last();
138
139
+ if ( !version ) {
140
+ throw new Error("No valid versions can be found that match the current branch (" +
141
+ currentPackage.branchVersion + ").\n" +
142
+ "Try running `git fetch -t` to download the tags from the repository.");
143
+ }
144
+
145
// We need to clone to ensure that we are not modifying another version
146
version = semver(version.raw);
147
0 commit comments