Skip to content

Commit 2ed80c4

Browse files
committed
throw error before logging
1 parent 7d77563 commit 2ed80c4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

compilation/types/slither.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,10 @@ func (s *SlitherConfig) RunSlither(target string) (*SlitherResults, error) {
7878
// Run slither
7979
start := time.Now()
8080
out, err = cmd.CombinedOutput()
81-
logging.GlobalLogger.Info("Finished running Slither in ", time.Since(start).Round(time.Second))
82-
8381
if err != nil {
8482
return nil, err
8583
}
84+
logging.GlobalLogger.Info("Finished running Slither in ", time.Since(start).Round(time.Second))
8685
}
8786

8887
// Capture the slither results

0 commit comments

Comments
 (0)