Skip to content

Commit f07d7f4

Browse files
committed
Improve Durable JSON serialization error logging
1 parent d869d94 commit f07d7f4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

azure/functions/durable_functions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,10 +99,10 @@ def decode(cls,
9999
except json.JSONDecodeError:
100100
# String failover if the content is not json serializable
101101
result = data.value
102-
except Exception:
102+
except Exception as e:
103103
raise ValueError(
104104
'activity trigger input must be a string or a '
105-
f'valid json serializable ({data.value})')
105+
f'valid json serializable ({data.value})') from e
106106
else:
107107
raise NotImplementedError(
108108
f'unsupported activity trigger payload type: {data_type}')

0 commit comments

Comments
 (0)