Skip to content

Commit

Permalink
Merge pull request #1125 from arawa/backport/show-error-spec-char-whe…
Browse files Browse the repository at this point in the history
…n-rename-workspace/1124/stable4.0

Show error special characters when renaming a workspace
  • Loading branch information
zak39 authored Jan 24, 2025
2 parents 278e44f + f631dda commit ddf1977
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Exceptions/BadRequestException.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
use OCP\AppFramework\Http;

class BadRequestException extends \Exception {
public function __construct($message) {
parent::__construct($message);
public function __construct($message, $code = HTTP::STATUS_BAD_REQUEST) {
parent::__construct($message, $code);
}

public function getStatus(): int {
Expand Down

0 comments on commit ddf1977

Please sign in to comment.