diff options
author | Junegunn Choi <junegunn.c@gmail.com> | 2020-10-28 10:51:32 +0900 |
---|---|---|
committer | Junegunn Choi <junegunn.c@gmail.com> | 2020-10-28 10:51:32 +0900 |
commit | 3304f284a565bc77d8a1009d8e1770e651b95c5c (patch) | |
tree | d34af88f7e210e3a2f549764bf4e726e13ba1efe /main.go | |
parent | 0d5f862daf45336c12c2f540736b3d7ca396c78d (diff) |
Panic when fzf was built without version information0.24.0-1
So that the package maintainers would immediately know that the build is
incorrect. But is there a way to make build simply fail?
Related: https://github.com/junegunn/fzf.vim/issues/1150
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -9,6 +9,9 @@ var version string var revision string func main() { + if len(version) == 0 { + panic("Invalid build: version information missing") + } protector.Protect() fzf.Run(fzf.ParseOptions(), version, revision) } |