Add warn_err() and die_err()