mailqun 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/mailqun +4 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a6fb93beeb19169d7babb25af4ba82437ddb4128
|
4
|
+
data.tar.gz: 74770a11fceebcd33720dfa8eef25885458de5fd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8c12b80fcba5d1082ef62a6a48b4d92b62f72215d45b475b400e2402c774d9946e33057819bf0e2bc4451a8000e585dab787fcb7767c9f5f2d61c2039d705956
|
7
|
+
data.tar.gz: 62bf63ee66d3bcd2542b8a2986cfbac98bd57e6e0963ee3f54184ea368fb2983064bd158955563f4acf9eed8daba8c8f763ca31fa1590903380cafe71bb51419
|
data/mailqun
CHANGED
@@ -71,8 +71,11 @@ def pretty_print_event_item item
|
|
71
71
|
pretty_line = "#{pretty_line} #{item['recipient']}"
|
72
72
|
|
73
73
|
if event == 'FAILED'
|
74
|
+
error_description = item['delivery-status']['description']
|
75
|
+
error_description = item['delivery-status']['message'] if error_description.empty?
|
74
76
|
pretty_line = "#{pretty_line}\t- #{item['delivery-status']['code']}"\
|
75
|
-
" - #{
|
77
|
+
" - #{error_description}"
|
78
|
+
|
76
79
|
puts "#{pretty_line}".red
|
77
80
|
elsif ['DELIVERED', 'OPENED'].include? event
|
78
81
|
puts "#{pretty_line}".green
|