Skip to content

Commit

Permalink
add missing return-code in DomainZones.add which messes up the error …
Browse files Browse the repository at this point in the history
…handling when using API

Signed-off-by: Michael Kaufmann <[email protected]>
  • Loading branch information
d00p committed Dec 23, 2020
1 parent 65773bc commit 38031aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Froxlor/Api/Commands/DomainZones.php
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ public function add()
return $this->response(200, "successful", $result);
}
// return $errors
throw new \Exception(implode("\n", $errors));
throw new \Exception(implode("\n", $errors), 406);
}

/**
Expand Down

0 comments on commit 38031aa

Please sign in to comment.