changeset 1559:153ea3b7afaf

Http - minor
author Franklin Schmidt <fschmidt@gmail.com>
date Thu, 22 Oct 2020 00:25:40 -0600
parents fe5bcd8133e0
children 33a53c43e2f7
files src/luan/modules/http/Http.luan
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
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