lib/eco/api/usecases/graphql/helpers/location/command/results.rb in eco-helpers-3.0.4 vs lib/eco/api/usecases/graphql/helpers/location/command/results.rb in eco-helpers-3.0.5
- old
+ new
@@ -122,17 +122,20 @@
end
# First error is relevant only if request was NOT forced to continue.
def first_err_str
return '' if force?
+
pre_str = 'stopped on node'
pre_str = 'first error' unless force?
+
"(#{pre_str}: '#{first_errored&.node_id}' - idx: #{first_errored_idx})"
end
# Last successfully applied is relevant only if request was NOT forced to continue.
def last_okay_str
return '' if force?
+
"(last node done: '#{last_applied&.node_id}' - idx: #{last_applied_idx})"
end
end
end