Error String becomes an exception

Stephen Paul Weber created

So that singletons can be added, for example

Change summary

lib/command.rb | 1 +
1 file changed, 1 insertion(+)

Detailed changes

lib/command.rb 🔗

@@ -104,6 +104,7 @@ class Command
 			}.catch_only(Timeout) { nil }.catch_only(FinalStanza) { |e|
 				@blather << e.stanza
 			}.catch do |e|
+				e = RuntimeError.new(e) if e.is_a?(String)
 				send_final_error(e)
 				EMPromise.reject(e)
 			end