Skip to content

Commit 511e4e6

Browse files
authored
fix: extractInstructionFromJSON returns an error (#1082)
1 parent 7c29b56 commit 511e4e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/utils_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ func extractInstructionFromJSON(line string, lineNumber int) (instruction, error
210210
// Use the json.Unmarshal function to parse the JSON into the struct
211211
var jsonInst JSONInstruction
212212
if err := json.Unmarshal([]byte(line), &jsonInst); err != nil {
213-
fmt.Println("Error parsing JSON:", err)
213+
return instruction{}, fmt.Errorf("parsing json instruction: %w", err)
214214
}
215215

216216
ins := instruction{

0 commit comments

Comments
 (0)