mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-24 06:34:09 +00:00
- Bumped version from 7.7.0-rc.2 to 8.0.0 across all relevant files. - Updated repository links to reflect the new UserGeneratedLLC branding. - Enhanced CHANGELOG with new features and fixes for the 8.0.0 release. - Updated plugin version and internal references to align with the new branding. - Modified dependencies in Cargo files to use the latest version of Atlas.
30 lines
661 B
Lua
30 lines
661 B
Lua
local Packages = script.Parent.Parent.Packages
|
|
local Fmt = require(Packages.Fmt)
|
|
|
|
local Config = require(script.Parent.Config)
|
|
|
|
local invariant
|
|
|
|
if Config.isDevBuild then
|
|
function invariant(message, ...)
|
|
message = Fmt.fmt(message, ...)
|
|
|
|
error("Invariant violation: " .. message, 2)
|
|
end
|
|
else
|
|
function invariant(message, ...)
|
|
message = Fmt.fmt(message, ...)
|
|
|
|
local fullMessage = string.format(
|
|
"Atlas detected an invariant violation within itself:\n"
|
|
.. "%s\n\n"
|
|
.. "This is a bug in Atlas. Please file an issue:\n"
|
|
.. "https://github.com/UserGeneratedLLC/rojo/issues",
|
|
message
|
|
)
|
|
|
|
error(fullMessage, 2)
|
|
end
|
|
end
|
|
|
|
return invariant
|