mirror of
https://github.com/ddworken/hishtory.git
synced 2025-08-14 17:18:46 +02:00
Improve error message + remove code that disabled error checking on github actions
This commit is contained in:
@ -118,7 +118,7 @@ func BackupAndRestoreEnv(k string) func() {
|
||||
}
|
||||
|
||||
func checkError(err error) {
|
||||
if err != nil && os.Getenv("GITHUB_ACTION") == "" {
|
||||
if err != nil {
|
||||
_, filename, line, _ := runtime.Caller(1)
|
||||
_, cf, cl, _ := runtime.Caller(2)
|
||||
log.Fatalf("testutils fatal error at %s:%d (caller: %s:%d): %v", filename, line, cf, cl, err)
|
||||
|
Reference in New Issue
Block a user