fix logging for quote errors
This commit is contained in:
@@ -701,8 +701,11 @@ export class ApNoteService {
|
|||||||
|
|
||||||
return quote;
|
return quote;
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
const error = e instanceof Error ? `${e.name}: ${e.message}` : String(e);
|
if (e instanceof Error) {
|
||||||
this.logger.warn(`Failed to resolve quote "${uri}" for note "${entryUri}": ${error}`);
|
this.logger.warn(`Failed to resolve quote "${uri}" for note "${entryUri}":`, e);
|
||||||
|
} else {
|
||||||
|
this.logger.warn(`Failed to resolve quote "${uri}" for note "${entryUri}": ${e}`);
|
||||||
|
}
|
||||||
|
|
||||||
return (e instanceof StatusError && e.isRetryable);
|
return (e instanceof StatusError && e.isRetryable);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user