diff src/luan/modules/http/Http.luan @ 1559:153ea3b7afaf

Http - minor
author Franklin Schmidt <fschmidt@gmail.com>
date Thu, 22 Oct 2020 00:25:40 -0600
parents 2b4471d310b3
children c922446f53aa
line wrap: on
line diff
--- a/src/luan/modules/http/Http.luan	Fri Oct 16 19:47:19 2020 -0600
+++ b/src/luan/modules/http/Http.luan	Thu Oct 22 00:25:40 2020 -0600
@@ -136,14 +136,14 @@
 	end
 
 	function this.text_writer()
-		this.writer and "writer already set"
+		this.writer and error "writer already set"
 		this.writer = ResponseOutputStream.new(this.java)
 		this.writer = OutputStreamWriter.new(this.writer)
 		return Boot.text_writer(this.writer)
 	end
 
 	function this.binary_writer()
-		this.writer and "writer already set"
+		this.writer and error "writer already set"
 		this.writer = ResponseOutputStream.new(this.java)
 		return Boot.binary_writer(this.writer)
 	end