Update translation.html
Browse files- 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 |
|