prevent printing out "undefined" if no container could be fetched and thus the response has no stdout or stderr.
This commit is contained in:
@ -604,11 +604,11 @@ $(function() {
|
|||||||
// output_mode_is_streaming = false;
|
// output_mode_is_streaming = false;
|
||||||
//}
|
//}
|
||||||
if (!colorize) {
|
if (!colorize) {
|
||||||
if(output.stdout != ''){
|
if(output.stdout != undefined && output.stdout != ''){
|
||||||
element.append(output.stdout)
|
element.append(output.stdout)
|
||||||
}
|
}
|
||||||
|
|
||||||
if(output.stderr != ''){
|
if(output.stderr != undefined && output.stderr != ''){
|
||||||
element.append('There was an error: StdErr: ' + output.stderr);
|
element.append('There was an error: StdErr: ' + output.stderr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user