[英]First 'property' of node-postgres error object
有人知道錯誤查詢中我的錯誤對象中的第一個偽屬性是什么嗎? 當我console.log('' + error);
它抓住括號內的文本以顯示。 除此之外,我不確定如何引用該屬性。
{ [error: function XXXXXXXXXX does not exist]
name: 'error',
length: 226,
severity: 'ERROR',
code: '42883',
detail: undefined,
hint: 'No function matches the given name and argument types. You might need to add explicit type casts.',
position: '8',
internalPosition: undefined,
internalQuery: undefined,
where: undefined,
file: 'parse_func.c',
line: '306',
routine: 'ParseFuncOrColumn' }
屬性message
將使您可以訪問錯誤消息本身。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.