Skip to content

Commit c690bcb

Browse files
committed
refactor: error message
1 parent f7fda84 commit c690bcb

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/git.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ export class Git {
66
}
77

88
latestTag() {
9-
return this.git(['describe', '--tags', '--abbrev=0']);
9+
try {
10+
return this.git(['describe', '--tags', '--abbrev=0']);
11+
} catch {
12+
throw new Error('failed get latest tag');
13+
}
1014
}
1115
}

0 commit comments

Comments
 (0)