kura 0.4.2 → 0.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/ChangeLog.md +7 -0
- data/lib/kura/client.rb +15 -7
- data/lib/kura/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2055945c222e4a141f646ffa69974eb97cd1ce26c5f7bf1910bb57044c573764
|
4
|
+
data.tar.gz: b7118e38c616f8fc26c454230586647932b92a68661aece9c38a2bd915b7f430
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 51b8ebfccc735b923c577be770282e7af95ead82502ada51d228f541aa918f27fd8d2ae5b586f5ca55aaaf5e5a309b06a57f2c22b691e2806f102e1088faa0ce
|
7
|
+
data.tar.gz: a0ec2909b094a50f3dbbb268e34ed9a78c030cfcd48c61c5c29c5699b9a9aac98579872dfc09050cfb12e92f9e29a4bd8a0ca7863548414c2ef8b0c800fcfb32
|
data/ChangeLog.md
CHANGED
data/lib/kura/client.rb
CHANGED
@@ -654,13 +654,21 @@ module Kura
|
|
654
654
|
def job_finished?(r)
|
655
655
|
if r.status.state == "DONE"
|
656
656
|
if r.status.error_result
|
657
|
-
|
658
|
-
|
659
|
-
|
660
|
-
|
661
|
-
|
662
|
-
|
663
|
-
|
657
|
+
if r.status.errors
|
658
|
+
raise Kura::ApiError.new(r.status.errors.map(&:reason).join(","),
|
659
|
+
r.status.errors.map{|e|
|
660
|
+
msg = "reason=#{e.reason} message=#{e.message}"
|
661
|
+
msg += " location=#{e.location}" if e.location
|
662
|
+
msg += " debug_info=#{e.debug_info}" if e.debug_info
|
663
|
+
msg
|
664
|
+
}.join("\n"))
|
665
|
+
else
|
666
|
+
e = r.status.error_result
|
667
|
+
msg = "reason=#{e.reason} message=#{e.message}"
|
668
|
+
msg += " location=#{e.location}" if e.location
|
669
|
+
msg += " debug_info=#{e.debug_info}" if e.debug_info
|
670
|
+
raise Kura::ApiError.new(e.reason, msg)
|
671
|
+
end
|
664
672
|
end
|
665
673
|
return true
|
666
674
|
end
|
data/lib/kura/version.rb
CHANGED