~singpolyma/sgx-jmp

a8d0861e6a98eed66978c90675cd5a1187682ab3 — Stephen Paul Weber 1 year, 2 months ago 48e9553
Error String becomes an exception

So that singletons can be added, for example
1 files changed, 1 insertions(+), 0 deletions(-)

M lib/command.rb
M lib/command.rb => lib/command.rb +1 -0
@@ 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