prevent printing out "undefined" if no container could be fetched and thus the response has no stdout or stderr.

This commit is contained in:
Ralf Teusner
2016-07-28 15:49:23 +02:00
parent 87901bd89b
commit 79309f6697

View File

@ -604,11 +604,11 @@ $(function() {
// output_mode_is_streaming = false;
//}
if (!colorize) {
if(output.stdout != ''){
if(output.stdout != undefined && output.stdout != ''){
element.append(output.stdout)
}
if(output.stderr != ''){
if(output.stderr != undefined && output.stderr != ''){
element.append('There was an error: StdErr: ' + output.stderr);
}