This commit is contained in:
Isaac Connor 2021-02-09 14:23:47 -05:00
parent 1780cfbff1
commit 79ac92c76d
1 changed files with 3 additions and 3 deletions

View File

@ -375,13 +375,13 @@ if ( currentView != 'none' && currentView != 'login' ) {
} }
//Shows a message if there is an error in the streamObj or the stream doesn't exist. Returns true if error, false otherwise. //Shows a message if there is an error in the streamObj or the stream doesn't exist. Returns true if error, false otherwise.
function checkStreamForErrors( funcName, streamObj ) { function checkStreamForErrors(funcName, streamObj) {
if ( !streamObj ) { if ( !streamObj ) {
Error( funcName+": stream object was null" ); Error(funcName+': stream object was null');
return true; return true;
} }
if ( streamObj.result == "Error" ) { if ( streamObj.result == "Error" ) {
Error( funcName+" stream error: "+streamObj.message ); Error(funcName+' stream error: '+streamObj.message);
return true; return true;
} }
return false; return false;