fig18 0.1.46-i386-mingw32 → 0.1.47-i386-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/fig/environment.rb +1 -1
- data/lib/fig.rb +6 -1
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.47
|
data/lib/fig/environment.rb
CHANGED
@@ -159,7 +159,7 @@ module Fig
|
|
159
159
|
stacktrace = string_handle.to_s
|
160
160
|
Logging.fatal \
|
161
161
|
"Version mismatch: #{package_name}" \
|
162
|
-
+ stacktrace.empty? ? '' : "\n#{stacktrace}"
|
162
|
+
+ ( stacktrace.empty? ? '' : "\n#{stacktrace}" )
|
163
163
|
raise RepositoryError.new
|
164
164
|
end
|
165
165
|
package
|
data/lib/fig.rb
CHANGED
@@ -218,7 +218,7 @@ module Fig
|
|
218
218
|
return 1
|
219
219
|
rescue UserInputError => exception
|
220
220
|
# If there's no message, we assume that the cause has already been logged.
|
221
|
-
if not exception
|
221
|
+
if not exception_has_message?(exception)
|
222
222
|
$stderr.puts exception.to_s
|
223
223
|
end
|
224
224
|
|
@@ -229,4 +229,9 @@ module Fig
|
|
229
229
|
return 1
|
230
230
|
end
|
231
231
|
end
|
232
|
+
|
233
|
+
def exception_has_message?(exception)
|
234
|
+
class_name = exception.class.name
|
235
|
+
return exception.message == class_name
|
236
|
+
end
|
232
237
|
end
|