diff --git a/assets/js/Containers/FrevaGPT/index.js b/assets/js/Containers/FrevaGPT/index.js index 74384789..952003e7 100644 --- a/assets/js/Containers/FrevaGPT/index.js +++ b/assets/js/Containers/FrevaGPT/index.js @@ -84,7 +84,7 @@ class FrevaGPT extends React.Component { pingSuccessful = true; } } catch (err) { - console.error("PingError: ", err); + pingSuccessful = false; } return pingSuccessful; @@ -259,7 +259,9 @@ class FrevaGPT extends React.Component { !subBuffer.includes("ServerHint") && !subBuffer.includes("Code") ) { - console.error(err); + this.props.dispatch( + addElement({ variant: "FrontendError", content: "Incomplete message received." }) + ); } } }