Skip to content

Instantly share code, notes, and snippets.

@b1naryth1ef
Created May 25, 2011 20:23
Show Gist options
  • Save b1naryth1ef/991852 to your computer and use it in GitHub Desktop.
Save b1naryth1ef/991852 to your computer and use it in GitHub Desktop.
Simple Error System in Gator
<gator>
[.load]
.errory
.dict
.dicty
[/]
$env = "env()"
env(){
init.env(*)
}
errors(error){
on ._self_load:
call !error:error
push error : dicty.esc($env)
}
TYPE[!er(error) : errors(error)]
!er("There's an error here")
!er:"Another Error!"
exit:>%env%
<gator.exit //>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment