Skip to content

Commit c47ca78

Browse files
authored
Merge pull request #177 from moonD4rk/fix/logbug
fix: handle error if run binary failed
2 parents 168df98 + 01b2bc5 commit c47ca78

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,4 +190,4 @@ result/
190190
results/
191191

192192
hack-browser-data
193-
!/hack-browser-data
193+
!/cmd/hack-browser-data

.golangci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,4 +64,4 @@ issues:
6464
linters:
6565
- 'unused'
6666
max-issues-per-linter: 0
67-
max-same-issues: 0
67+
max-same-issues: 0

cmd/hack-browser-data/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,6 @@ func Execute() {
6969
}
7070
err := app.Run(os.Args)
7171
if err != nil {
72-
log.Error(err)
72+
panic(err)
7373
}
7474
}

0 commit comments

Comments
 (0)