障害のあるクエリのエラー オブジェクトにある最初の疑似プロパティを知っている人はいますか? 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' }