Skip to content

Commit

Permalink
docs: update README.md
Browse files Browse the repository at this point in the history
occured -> occurred
  • Loading branch information
eltociear authored and tommie committed Nov 19, 2024
1 parent 79b8657 commit 6a40dd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ val, err := ctx.RunScript(src, filename)
if err != nil {
e := err.(*v8.JSError) // JavaScript errors will be returned as the JSError struct
fmt.Println(e.Message) // the message of the exception thrown
fmt.Println(e.Location) // the filename, line number and the column where the error occured
fmt.Println(e.Location) // the filename, line number and the column where the error occurred
fmt.Println(e.StackTrace) // the full stack trace of the error, if available

fmt.Printf("javascript error: %v", e) // will format the standard error message
Expand Down

0 comments on commit 6a40dd1

Please sign in to comment.