add better error logging for fragment translation debugging
This commit is contained in:
parent
b7563d0f2b
commit
60743c5bfb
1 changed files with 2 additions and 1 deletions
|
|
@ -458,7 +458,8 @@ ${preservedText}`;
|
|||
return translatedText;
|
||||
} catch (error) {
|
||||
console.error("Fragment translation error:", error);
|
||||
throw new Error("Fragment translation failed. Please try again.");
|
||||
console.error("Error stack:", error.stack);
|
||||
throw new Error(`Fragment translation failed: ${error.message}`);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue