Skip to content

Commit

Permalink
Don't send error info in prod
Browse files Browse the repository at this point in the history
  • Loading branch information
essenciary committed Sep 26, 2023
1 parent 9ffe1fc commit f34daea
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "Stipple"
uuid = "4acbeb90-81a0-11ea-1966-bdaff8155998"
authors = ["Adrian <[email protected]>"]
version = "0.27.9"
version = "0.27.10"

[deps]
Dates = "ade2ca70-3891-5945-98fb-dc099432e06a"
Expand Down
6 changes: 5 additions & 1 deletion src/Stipple.jl
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,11 @@ function init(::Type{M};
update!(model, field, newval, oldval)
catch ex
# send the error to the frontend
return ex
if Genie.Configuration.isdev()
return ex
else
return "An error has occured -- please check the logs"
end
end

ok_response
Expand Down

2 comments on commit f34daea

@essenciary
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/92242

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.27.10 -m "<description of version>" f34daea4f458d90df282ea25ddf5a3884b849bbe
git push origin v0.27.10

Please sign in to comment.