Added snippet for if err != nil statement.