Better log
This commit is contained in:
@@ -55,7 +55,13 @@ export async function createNote(value: any, resolver?: Resolver, silent = false
|
||||
const object = await resolver.resolve(value) as any;
|
||||
|
||||
if (object == null || object.type !== 'Note') {
|
||||
logger.error(`invalid note: ${object}`);
|
||||
logger.error(`invalid note: ${value}`, {
|
||||
resolver: {
|
||||
history: resolver.getHistory()
|
||||
},
|
||||
value: value,
|
||||
object: object
|
||||
});
|
||||
return null;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user