fixed error handling in creating

Signed-off-by: tracer <tracer@24unix.net>
This commit is contained in:
tracer 2022-02-22 16:15:29 +01:00
parent 44ff33120d
commit b0535a3d18
1 changed files with 4 additions and 3 deletions

View File

@ -474,9 +474,10 @@ class BindAPI
echo $e->getMessage(); echo $e->getMessage();
exit(1); exit(1);
} }
print_r(value: $create); if ($create['header'] != 201) {
if ($create['header'] != 200) {
die("make error handling"); die("make error handling");
} else {
echo COLOR_GREEN . 'OK';
} }
} }
break; break;