Skip to content

Commit 71b07da

Browse files
committed
rephrase error message
1 parent 7b96395 commit 71b07da

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pvlib/pvsystem.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,8 @@ def wrapper(self, *args, **kwargs):
8585
if len(self.arrays) > 1:
8686
raise AttributeError(
8787
f'{class_name}.{pvsystem_attr} not supported for multi-array '
88-
f'systems. Use {alternative} instead.')
88+
f'systems. Set {array_attr} for each Array in '
89+
f'{class_name}.arrays instead.')
8990

9091
wrapped = deprecated('0.9', alternative=alternative, removal='0.10',
9192
name=f"{class_name}.{pvsystem_attr}")(func)

0 commit comments

Comments
 (0)