mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-10 18:33:46 +02:00
Correctly json_encode validation errors.
This commit is contained in:
@@ -63,7 +63,7 @@ class VariableRepository
|
||||
});
|
||||
|
||||
if ($validator->fails()) {
|
||||
throw new DisplayValidationException($validator->errors());
|
||||
throw new DisplayValidationException(json_encode($validator->errors()));
|
||||
}
|
||||
|
||||
if (isset($data['env_variable'])) {
|
||||
@@ -137,7 +137,7 @@ class VariableRepository
|
||||
});
|
||||
|
||||
if ($validator->fails()) {
|
||||
throw new DisplayValidationException($validator->errors());
|
||||
throw new DisplayValidationException(json_encode($validator->errors()));
|
||||
}
|
||||
|
||||
if (isset($data['env_variable'])) {
|
||||
|
||||
Reference in New Issue
Block a user