coyotte508 HF staff commited on
Commit
b2a43a2
β€’
1 Parent(s): 9d7e455

πŸ”Š Log errors

Browse files
Files changed (2) hide show
  1. app.ts +1 -0
  2. dist/app.js +1 -0
app.ts CHANGED
@@ -83,6 +83,7 @@ window.document.addEventListener("DOMContentLoaded", () => {
83
  `<div class="text-green-500 mb-6">πŸŽ‰ Upload complete! Model page is <a target="_blank" class="text-bold underline" href="${repoUrl}">${repoUrl}</a></div>`
84
  );
85
  } catch (err) {
 
86
  output.append("\n" + err);
87
  }
88
  button.removeAttribute("disabled");
 
83
  `<div class="text-green-500 mb-6">πŸŽ‰ Upload complete! Model page is <a target="_blank" class="text-bold underline" href="${repoUrl}">${repoUrl}</a></div>`
84
  );
85
  } catch (err) {
86
+ console.error(err);
87
  output.append("\n" + err);
88
  }
89
  button.removeAttribute("disabled");
dist/app.js CHANGED
@@ -66,6 +66,7 @@ window.document.addEventListener("DOMContentLoaded", () => {
66
  button.insertAdjacentHTML("afterend", `<div class="text-green-500 mb-6">πŸŽ‰ Upload complete! Model page is <a target="_blank" class="text-bold underline" href="${repoUrl}">${repoUrl}</a></div>`);
67
  }
68
  catch (err) {
 
69
  output.append("\n" + err);
70
  }
71
  button.removeAttribute("disabled");
 
66
  button.insertAdjacentHTML("afterend", `<div class="text-green-500 mb-6">πŸŽ‰ Upload complete! Model page is <a target="_blank" class="text-bold underline" href="${repoUrl}">${repoUrl}</a></div>`);
67
  }
68
  catch (err) {
69
+ console.error(err);
70
  output.append("\n" + err);
71
  }
72
  button.removeAttribute("disabled");