Skip to content

Commit e60d85a

Browse files
authored
change log error name
1 parent 93bed95 commit e60d85a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/containers/blocks.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -625,13 +625,13 @@ class Blocks extends React.Component {
625625
exitFunc("Custom Modal -- Param 2 must be a object with 'width' and 'height' number properties");
626626
}
627627
if (isObject(enterInfo)) {
628-
if (!scale.name || !scale.callback) exitFunc("Custom Modal -- Missing width/height number property in Param 3");
628+
if (!scale.name || !scale.callback) exitFunc("Custom Modal -- Missing name/callback property in Param 3");
629629
if (scale.callback && typeof scale.callback !== 'function') exitFunc("Custom Modal -- callback property in Param 3 must be a function");
630630
} else {
631631
exitFunc("Custom Modal -- Param 3 must be a object with properties: 'name' (string) and 'callback' (function)");
632632
}
633633
if (isObject(closeInfo)) {
634-
if (!scale.name || !scale.callback) exitFunc("Custom Modal -- Missing width/height number property in Param 4");
634+
if (!scale.name || !scale.callback) exitFunc("Custom Modal -- Missing name/callback property in Param 4");
635635
if (scale.callback && typeof scale.callback !== 'function') exitFunc("Custom Modal -- callback property in Param 4 must be a function");
636636
} else {
637637
exitFunc("Custom Modal -- Param 4 must be a object with properties: 'name' (string) and 'callback' (function)");

0 commit comments

Comments
 (0)