Skip to content

Commit

Permalink
fix(softfloat/gen): replace fmt.Println with log.Fatal for error hand…
Browse files Browse the repository at this point in the history
…ling
  • Loading branch information
omarsy committed Jan 23, 2025
1 parent 4d043ce commit 1c03502
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions gnovm/pkg/gnolang/internal/softfloat/gen/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ func processSoftFloat64File() {
// Read source file
content, err := os.ReadFile(fmt.Sprintf("%s/src/runtime/softfloat64.go", runtime.GOROOT()))
if err != nil {
fmt.Println("Error reading source file:", err)
return
log.Fatal("Error reading source file:", err)
}

// Prepare header
Expand All @@ -54,8 +53,7 @@ func processSoftFloat64TestFile() {
// Read source test file
content, err := os.ReadFile(fmt.Sprintf("%s/src/runtime/softfloat64_test.go", runtime.GOROOT()))
if err != nil {
fmt.Println("Error reading source test file:", err)
return
log.Fatal("Error reading source test file:", err)
}

// Prepare header
Expand Down

0 comments on commit 1c03502

Please sign in to comment.