Add error reporting to create and update calls