fixed error handling in creating
Signed-off-by: tracer <tracer@24unix.net>
This commit is contained in:
parent
44ff33120d
commit
b0535a3d18
|
@ -474,9 +474,10 @@ class BindAPI
|
|||
echo $e->getMessage();
|
||||
exit(1);
|
||||
}
|
||||
print_r(value: $create);
|
||||
if ($create['header'] != 200) {
|
||||
if ($create['header'] != 201) {
|
||||
die("make error handling");
|
||||
} else {
|
||||
echo COLOR_GREEN . 'OK';
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue