only save errors if useful

i somehow got a `null` error