Remove HTML from API error messages
This commit is contained in:
parent
939a0c5591
commit
c7201cc417
1 changed files with 3 additions and 3 deletions
|
@ -422,12 +422,12 @@ return [
|
||||||
],
|
],
|
||||||
Exception::ATTRIBUTE_UNKNOWN => [
|
Exception::ATTRIBUTE_UNKNOWN => [
|
||||||
'name' => Exception::ATTRIBUTE_UNKNOWN,
|
'name' => Exception::ATTRIBUTE_UNKNOWN,
|
||||||
'description' => 'The attribute required for the index could not be found. Please confirm all your attributes are in the <span class="tag">available</span> state.',
|
'description' => 'The attribute required for the index could not be found. Please confirm all your attributes are in the available state.',
|
||||||
'code' => 400,
|
'code' => 400,
|
||||||
],
|
],
|
||||||
Exception::ATTRIBUTE_NOT_AVAILABLE => [
|
Exception::ATTRIBUTE_NOT_AVAILABLE => [
|
||||||
'name' => Exception::ATTRIBUTE_NOT_AVAILABLE,
|
'name' => Exception::ATTRIBUTE_NOT_AVAILABLE,
|
||||||
'description' => 'The requested attribute is not yet <span class="tag">available</span>. Please try again later.',
|
'description' => 'The requested attribute is not yet available. Please try again later.',
|
||||||
'code' => 400,
|
'code' => 400,
|
||||||
],
|
],
|
||||||
Exception::ATTRIBUTE_FORMAT_UNSUPPORTED => [
|
Exception::ATTRIBUTE_FORMAT_UNSUPPORTED => [
|
||||||
|
@ -437,7 +437,7 @@ return [
|
||||||
],
|
],
|
||||||
Exception::ATTRIBUTE_DEFAULT_UNSUPPORTED => [
|
Exception::ATTRIBUTE_DEFAULT_UNSUPPORTED => [
|
||||||
'name' => Exception::ATTRIBUTE_DEFAULT_UNSUPPORTED,
|
'name' => Exception::ATTRIBUTE_DEFAULT_UNSUPPORTED,
|
||||||
'description' => 'Default values cannot be set for <span class="tag">array</span> and <span class="tag">required</span> attributes.',
|
'description' => 'Default values cannot be set for array or required attributes.',
|
||||||
'code' => 400,
|
'code' => 400,
|
||||||
],
|
],
|
||||||
Exception::ATTRIBUTE_ALREADY_EXISTS => [
|
Exception::ATTRIBUTE_ALREADY_EXISTS => [
|
||||||
|
|
Loading…
Reference in a new issue