Skip to content

Commit cefcee2

Browse files
Copilothotlong
andcommitted
fix: pass error as Record to logger.warn to fix TS2345 in auth-plugin
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
1 parent 12fdc1f commit cefcee2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/plugins/plugin-auth/src/auth-plugin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ export class AuthPlugin implements Plugin {
115115
} catch (error) {
116116
// Gracefully handle missing HTTP server (e.g. MSW/mock mode)
117117
const err = error instanceof Error ? error : new Error(String(error));
118-
ctx.logger.warn('HTTP server not available, skipping auth route registration:', err.message);
118+
ctx.logger.warn('HTTP server not available, skipping auth route registration', { error: err.message });
119119
}
120120
}
121121

0 commit comments

Comments
 (0)