File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
api/src/opentrons/protocol_api Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1155,13 +1155,13 @@ def load_liquid(
1155
1155
if isinstance (well , str ):
1156
1156
if well not in self :
1157
1157
raise KeyError (
1158
- " The elements of wells should name wells in this labware."
1158
+ f" { well } is not a well in labware { self . name } . The elements of wells should name wells in this labware."
1159
1159
)
1160
1160
well_names .append (well )
1161
1161
elif isinstance (well , Well ):
1162
1162
if well .parent is not self :
1163
1163
raise KeyError (
1164
- " The elements of wells should be wells of this labware."
1164
+ f" { well . well_name } is not a well in labware { self . name } . The elements of wells should be wells of this labware."
1165
1165
)
1166
1166
well_names .append (well .well_name )
1167
1167
else :
@@ -1200,13 +1200,13 @@ def load_liquid_by_well(
1200
1200
if isinstance (well , str ):
1201
1201
if well not in self :
1202
1202
raise KeyError (
1203
- " The keys of volumes should name wells in this labware"
1203
+ f" { well } is not a well in { self . name } . The keys of volumes should name wells in this labware"
1204
1204
)
1205
1205
verified_volumes [well ] = volume
1206
1206
elif isinstance (well , Well ):
1207
1207
if well .parent is not self :
1208
1208
raise KeyError (
1209
- " The keys of volumes should be wells of this labware"
1209
+ f" { well . well_name } is not a well in { self . name } . The keys of volumes should be wells of this labware"
1210
1210
)
1211
1211
verified_volumes [well .well_name ] = volume
1212
1212
else :
You can’t perform that action at this time.
0 commit comments