boazchung commited on
Commit
016393e
1 Parent(s): d7cab08

Update translation.html

Browse files
Files changed (1) hide show
  1. translation.html +5 -0
translation.html CHANGED
@@ -97,6 +97,11 @@
97
  document.getElementById("outputArea2").innerText = JSON.stringify(result, null, 2);
98
  } catch (error) {
99
  console.error("Error during translation:", error);
 
 
 
 
 
100
  }
101
  }
102
 
 
97
  document.getElementById("outputArea2").innerText = JSON.stringify(result, null, 2);
98
  } catch (error) {
99
  console.error("Error during translation:", error);
100
+ if (error.response && error.response.json) {
101
+ error.response.json().then(json => {
102
+ console.error("Error details:", json);
103
+ });
104
+ }
105
  }
106
  }
107