Skip to content

Commit cd02f43

Browse files
More descriptive errors
1 parent 5e21137 commit cd02f43

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

microscope/controllers/asi.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -503,10 +503,10 @@ def _get_setting(self, command, axis, dtype, value):
503503
# this is an error string
504504
error = answer[2:]
505505
raise Exception(
506-
f"ASI controller error: {error},{ASI_ERRORS[error]}"
506+
f"ASI controller error on command {command}: {error},{ASI_ERRORS[error]}"
507507
)
508508
else:
509-
raise Exception(f"ASI controller error: {answer}")
509+
raise Exception(f"ASI controller error on command {command}: {answer}")
510510

511511
if dtype == "int":
512512
return int(answer)

0 commit comments

Comments
 (0)