Skip to content

Commit

Permalink
chore: update readme again
Browse files Browse the repository at this point in the history
update the API in the usage example
  • Loading branch information
jmesrje committed Jan 1, 2025
1 parent fece3b1 commit d3664ad
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,19 @@ local Logs = {
"Whoops" = "Something bad happened!: %s"
}
Debugger.SetMetadata(Logs, {
Debugger.set({
Logs = Logs,
Name = "Cool Package",
URL = "https://example.com/",
Trace = true,
})
local Result, Err: Debugger.ParsedError = xpcall(function()
error("This is an error...")
end, Debugger.Parse)
end, Debugger.parse)
if not Result then
Debugger.Fatal("Whoops", Err.Message) -- Output: Something bad happened!: This is an error...
Debugger.fatal("Whoops", Err.Message) -- Output: Something bad happened!: This is an error...
end
```

Expand Down

0 comments on commit d3664ad

Please sign in to comment.