Made error fields public