Skip to content

Commit

Permalink
fix: Remove validation error logging (#4240)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yserz authored and Gregor Herdmann committed Aug 2, 2018
1 parent aaf9683 commit 26b8a60
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions app/script/auth/util/errorUtil.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ import {ErrorMessage} from '@wireapp/react-ui-kit';
import React from 'react';

export function parseError(error) {
console.error('Unexpected error: ', error, JSON.stringify(error));
if (error) {
if (errorHandlerStrings.hasOwnProperty(error.label)) {
return <FormattedHTMLMessage {...errorHandlerStrings[error.label]} />;
Expand All @@ -33,7 +32,6 @@ export function parseError(error) {
}

export function parseValidationErrors(errors) {
console.error('Unexpected validation errors: ', errors, JSON.stringify(errors));
const errorMessages = [].concat(errors || []);
return errorMessages.map(error => (
<ErrorMessage data-uie-name="error-message" key={error.label}>
Expand Down

0 comments on commit 26b8a60

Please sign in to comment.