test: cleanup initial error handling

This commit is contained in:
Sebastian
2023-10-25 22:16:26 +02:00
parent 13de67f570
commit 82907c73a3
3 changed files with 16 additions and 4 deletions

View File

@ -628,7 +628,9 @@ sub ErrorHandling {
if ( $param->{code} == 400 ) {
if ($decode_json) {
if ( ref( $decode_json->{errors} ) eq "ARRAY"
&& defined( $decode_json->{errors} ) )
&& exists( $decode_json->{errors} ) )
# replace defined with exists
# && defined( $decode_json->{errors} ) )
{
readingsBulkUpdate(
$dhash,