Skip to content

Instantly share code, notes, and snippets.

@MaryamZi
Created December 24, 2019 10:21
Show Gist options
  • Save MaryamZi/0b1cc33d9c924114b75e261b097fe97c to your computer and use it in GitHub Desktop.
Save MaryamZi/0b1cc33d9c924114b75e261b097fe97c to your computer and use it in GitHub Desktop.
public function main() {
error err = error("TestError",
message = "error message",
code = 1111);
record {|
string message?;
error cause?;
anydata|error...;
|} detail = err.detail();
detail.message = "new message"; // this panics!
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment