Commit de088217 authored by michael's avatar michael

60: Return bad response if can't publish

parent 638d76ca
......@@ -67,7 +67,7 @@ class PublishController extends Controller {
if (!$identifiers) {
$msg = "CRITICAL - No books found which match " . $event->getRepo();
return new Response($msg);
return new Response($msg, Response::HTTP_BAD_REQUEST);
}
$this->publisher = $this->get('publisher');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment