Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/_layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ export default function RootLayout() {
return { name, success: true };
} catch (error) {
if (__DEV__) {
console.warn(`[Store] ${name} initialization failed:`, error);
console.warn("[Store] initialization failed", { name, error });
}
return { name, success: false, error };
}
Expand Down
6 changes: 3 additions & 3 deletions components/ui/SectionErrorBoundary.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ export class SectionErrorBoundary extends Component<Props, State> {
}

componentDidCatch(error: Error, errorInfo: React.ErrorInfo) {
console.error(
`[SectionErrorBoundary] Error in ${this.props.sectionName}:`,
console.error("[SectionErrorBoundary] Error in section", {
sectionName: this.props.sectionName,
error,
errorInfo,
);
});
}

handleRetry = () => {
Expand Down
2 changes: 1 addition & 1 deletion env.example
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@

# Supabase Configuration (Frankfurt - eu-central-1)
EXPO_PUBLIC_SUPABASE_URL=https://shchfellocvnhrhhtiui.supabase.co
EXPO_PUBLIC_SUPABASE_ANON_KEY=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InNoY2hmZWxsb2N2bmhyaGh0aXVpIiwicm9sZSI6ImFub24iLCJpYXQiOjE3Njg0Mzk5ODMsImV4cCI6MjA4NDAxNTk4M30.UiJpkUBYWNtEff4o4xptSx02PWlS-MN6AC_Xn8K5IxE
EXPO_PUBLIC_SUPABASE_ANON_KEY=your_supabase_anon_key_here
5 changes: 4 additions & 1 deletion utils/storage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@ export function setStorageErrorHandler(callback: StorageErrorCallback): void {
*/
export function handleStorageError(error: unknown, operation: string): void {
const err = error instanceof Error ? error : new Error(String(error));
console.error(`[Storage] ${operation} failed:`, err.message);
console.error("[Storage] operation failed", {
operation,
message: err.message,
});

if (onStorageError) {
onStorageError(err, operation);
Expand Down
Loading