Skip to content

Commit 089780f

Browse files
authored
change console.error to console.warn (#97)
* change console.error to console.warn * add changeset
1 parent 4565a07 commit 089780f

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{ "releases": [{ "name": "pretty-proptypes", "type": "patch" }], "dependents": [] }
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Change console.error for null members in pretty-proptypes to console.warn

packages/pretty-proptypes/src/PrettyConvert/converters.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ export const converters: { [string]: ?Function } = {
107107
let simpleObj = type.members.filter(mem => {
108108
if (mem === null) {
109109
/** if the member is null, error out */
110-
console.error(`null property in members of ${type.referenceIdName} of kind ${type.kind} `)
110+
console.warn(`null property in members of ${type.referenceIdName} of kind ${type.kind} `)
111111
return false;
112112
}
113113
return !SIMPLE_TYPES.includes(mem.kind)

0 commit comments

Comments
 (0)