merge in "On unknown IQ, reply with proper error"

Denver Gingerich created

Thanks to @singpolyma for both reporting (#8) and fixing this.

See merge request !11 for the discussion and details behind the merge.

Change summary

sgx-catapult.rb | 8 ++++++++
1 file changed, 8 insertions(+)

Detailed changes

sgx-catapult.rb 🔗

@@ -884,6 +884,14 @@ module SGXcatapult
 		#write_to_stream s.approve!
 		#write_to_stream s.request!
 	end
+
+	iq :get? do |i|
+		write_to_stream error_msg(i.reply, i.query, 'cancel', 'feature-not-implemented')
+	end
+
+	iq :set? do |i|
+		write_to_stream error_msg(i.reply, i.query, 'cancel', 'feature-not-implemented')
+	end
 end
 
 [:INT, :TERM].each do |sig|