refactor: 🔊 Log timeline query errors
This commit is contained in:
parent
1914e568bb
commit
3d64c48969
6 changed files with 6 additions and 0 deletions
|
@ -125,6 +125,7 @@ export default define(meta, paramDef, async (ps, user) => {
|
|||
if (notes.length < take) break;
|
||||
}
|
||||
} catch (error) {
|
||||
console.log(`\n\n\nQUERY ERROR: ${error}\n\n\n`)
|
||||
throw new ApiError(meta.errors.queryError);
|
||||
}
|
||||
|
||||
|
|
|
@ -182,6 +182,7 @@ export default define(meta, paramDef, async (ps, user) => {
|
|||
if (notes.length < take) break;
|
||||
}
|
||||
} catch (error) {
|
||||
console.log(`\n\n\nQUERY ERROR: ${error}\n\n\n`)
|
||||
throw new ApiError(meta.errors.queryError);
|
||||
}
|
||||
|
||||
|
|
|
@ -155,6 +155,7 @@ export default define(meta, paramDef, async (ps, user) => {
|
|||
if (notes.length < take) break;
|
||||
}
|
||||
} catch (error) {
|
||||
console.log(`\n\n\nQUERY ERROR: ${error}\n\n\n`)
|
||||
throw new ApiError(meta.errors.queryError);
|
||||
}
|
||||
|
||||
|
|
|
@ -158,6 +158,7 @@ export default define(meta, paramDef, async (ps, user) => {
|
|||
if (notes.length < take) break;
|
||||
}
|
||||
} catch (error) {
|
||||
console.log(`\n\n\nQUERY ERROR: ${error}\n\n\n`)
|
||||
throw new ApiError(meta.errors.queryError);
|
||||
}
|
||||
|
||||
|
|
|
@ -178,6 +178,7 @@ export default define(meta, paramDef, async (ps, user) => {
|
|||
if (notes.length < take) break;
|
||||
}
|
||||
} catch (error) {
|
||||
console.log(`\n\n\nQUERY ERROR: ${error}\n\n\n`)
|
||||
throw new ApiError(meta.errors.queryError);
|
||||
}
|
||||
|
||||
|
|
|
@ -162,6 +162,7 @@ export default define(meta, paramDef, async (ps, user) => {
|
|||
if (notes.length < take) break;
|
||||
}
|
||||
} catch (error) {
|
||||
console.log(`\n\n\nQUERY ERROR: ${error}\n\n\n`)
|
||||
throw new ApiError(meta.errors.queryError);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue