chiark / gitweb /
rm test things
authorMarnanel Thurman <marnanel@thurman.org.uk>
Mon, 20 Dec 2021 00:54:18 +0000 (00:54 +0000)
committerMarnanel Thurman <marnanel@thurman.org.uk>
Mon, 20 Dec 2021 00:54:18 +0000 (00:54 +0000)
App.js

diff --git a/App.js b/App.js
index fa62ecc08ba7ac0f0600b56a2263ff74ae68921a..3f9fe864eebe3d4922db345e0ac1776ddcd352aa 100644 (file)
--- a/App.js
+++ b/App.js
@@ -40,7 +40,6 @@ export default class App extends React.Component {
                 console.log(login1);
 
                 this.ui_login_show_message("Logging in...");
-                return;
 
                 grok_login2(
                     login1['auth'],
@@ -50,12 +49,12 @@ export default class App extends React.Component {
                 ).then(() => {
                     this.ui_login_show_message("Success!");
                 }).catch((error) => {
-                    this.ui_login_show_message(String(error));
+                    this.ui_login_show_message(error['message']);
                 });
             }
             ).catch((error) => {
                 console.log("g_l1 failed");
-                this.ui_login_show_message(String(error));
+                this.ui_login_show_message("error: "+error);
             });
     };