refactor: 🔊 Log timeline query errors

This commit is contained in:
ThatOneCalculator 2023-09-17 21:17:47 -07:00
parent 1914e568bb
commit 3d64c48969
No known key found for this signature in database
GPG key ID: 8703CACD01000000
6 changed files with 6 additions and 0 deletions

View file

@ -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);
}

View file

@ -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);
}

View file

@ -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);
}

View file

@ -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);
}

View file

@ -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);
}

View file

@ -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);
}