Error could be null which makes error handling weird