[Bridge] Return name of the parameter that failed the check
This commit is contained in:
parent
7c36b51aa2
commit
47b6cb8937
1 changed files with 3 additions and 1 deletions
|
@ -225,8 +225,10 @@ abstract class BridgeAbstract implements BridgeInterface {
|
|||
break;
|
||||
}
|
||||
|
||||
if(is_null($data[$name]))
|
||||
if(is_null($data[$name])){
|
||||
echo 'Parameter \'' . $name . '\' is invalid!' . PHP_EOL;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue