fix: enhance error handling for custom headers and improve test coverage for header management
This commit is contained in:
parent
fde55efc2f
commit
90ab419d12
1 changed files with 163 additions and 41 deletions
|
|
@ -137,7 +137,11 @@ const App = () => {
|
|||
if (savedHeaders) {
|
||||
try {
|
||||
return JSON.parse(savedHeaders);
|
||||
} catch {
|
||||
} catch (error) {
|
||||
console.warn(
|
||||
`Failed to parse custom headers: "${savedHeaders}", will try legacy migration`,
|
||||
error,
|
||||
);
|
||||
// Fall back to migration if JSON parsing fails
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue