Fix some of the error handling.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3969 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
		| @@ -281,7 +281,7 @@ async function getProcessBlob(blobId, key, options) { | |||||||
| 			}; | 			}; | ||||||
| 			process.task.onError = function(error) { | 			process.task.onError = function(error) { | ||||||
| 				try { | 				try { | ||||||
| 					process.app.send({action: 'error', error: error}); | 					process.app.makeFunction(['error'])(error); | ||||||
| 				} catch(e) { | 				} catch(e) { | ||||||
| 					print(e); | 					print(e); | ||||||
| 				} | 				} | ||||||
|   | |||||||
| @@ -461,7 +461,6 @@ JSValue _task_invokeExport_internal(tf_taskstub_t* from, tf_task_t* to, exportid | |||||||
|  |  | ||||||
| 		result = JS_Call(to->_context, function, this_val, length - 1, argument_array); | 		result = JS_Call(to->_context, function, this_val, length - 1, argument_array); | ||||||
| 		tf_trace_end(to->_trace); | 		tf_trace_end(to->_trace); | ||||||
| 		tf_util_report_error(to->_context, result); |  | ||||||
|  |  | ||||||
| 		JS_FreeValue(to->_context, this_val); | 		JS_FreeValue(to->_context, this_val); | ||||||
| 		for (int i = 0; i < length - 1; i++) | 		for (int i = 0; i < length - 1; i++) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user