When I made this a pointer I got an warning saying that I was trying to assign type `Error *` to `Error`.

I'll switch back and see what the issue was.