mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-06-05 21:59:24 +02:00
Fix for error messages that aren't lists
This commit is contained in:
@@ -2125,10 +2125,14 @@ function show_error_message(data) {
|
||||
while (error_box_data.firstChild) {
|
||||
error_box_data.removeChild(error_box_data.firstChild);
|
||||
}
|
||||
if (Array.isArray(data)) {
|
||||
for (item of data) {
|
||||
$e("div", error_box_data, {'innerHTML': item, 'classes': ['console_text']})
|
||||
$e("br", error_box_data)
|
||||
}
|
||||
} else {
|
||||
$e("div", error_box_data, {'innerHTML': item, 'classes': ['console_text']})
|
||||
}
|
||||
}
|
||||
|
||||
function do_wpp(wpp_area) {
|
||||
|
Reference in New Issue
Block a user