forward 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/forward/api/tunnel.rb +7 -2
- data/lib/forward/client.rb +1 -1
- data/lib/forward/version.rb +1 -1
- metadata +2 -2
data/lib/forward/api/tunnel.rb
CHANGED
@@ -67,6 +67,7 @@ module Forward
|
|
67
67
|
end
|
68
68
|
|
69
69
|
def self.create_error(errors)
|
70
|
+
Forward.log(:debug, "An error occured creating tunnel:\n#{errors.inspect}")
|
70
71
|
base_errors = errors['base']
|
71
72
|
|
72
73
|
if base_errors && base_errors.any? { |e| e.include? 'limit' }
|
@@ -74,9 +75,13 @@ module Forward
|
|
74
75
|
Forward.log(:debug, 'Tunnel limit reached')
|
75
76
|
ask_to_destroy(message)
|
76
77
|
else
|
77
|
-
message = "
|
78
|
+
message = "We were unable to create your tunnel for the following reasons: \n"
|
78
79
|
errors.each do |key, value|
|
79
|
-
|
80
|
+
if key != 'base'
|
81
|
+
message << " #{key} #{value.join(', ')}\n"
|
82
|
+
elsif key == 'base' && value.include? 'account'
|
83
|
+
message << " #{value}\n"
|
84
|
+
end
|
80
85
|
end
|
81
86
|
Forward::Client.cleanup_and_exit!(message)
|
82
87
|
end
|
data/lib/forward/client.rb
CHANGED
data/lib/forward/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: forward
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-10-
|
12
|
+
date: 2012-10-07 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: json
|