mirror of
https://github.com/tale/headplane.git
synced 2026-08-26 04:16:49 +00:00
chore: remove some random console.logs
This commit is contained in:
@@ -170,12 +170,10 @@ export function getErrorMessage(error: Error | unknown): {
|
|||||||
|
|
||||||
// Traverse the error chain to find the root cause
|
// Traverse the error chain to find the root cause
|
||||||
let rootError = error;
|
let rootError = error;
|
||||||
console.log('error', error.cause != null);
|
|
||||||
if (error.cause != null) {
|
if (error.cause != null) {
|
||||||
rootError = error.cause as Error;
|
rootError = error.cause as Error;
|
||||||
while (rootError.cause != null) {
|
while (rootError.cause != null) {
|
||||||
rootError = rootError.cause as Error;
|
rootError = rootError.cause as Error;
|
||||||
console.log('setting rootError', rootError.message);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -55,8 +55,6 @@ export async function aclAction({ request, context }: Route.ActionArgs) {
|
|||||||
throw error;
|
throw error;
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log('rawData', message);
|
|
||||||
|
|
||||||
// Starting in Headscale 0.27.0 the ACLs parsing was changed meaning
|
// Starting in Headscale 0.27.0 the ACLs parsing was changed meaning
|
||||||
// we need to reference other error messages based on API version.
|
// we need to reference other error messages based on API version.
|
||||||
if (context.hsApi.clientHelpers.isAtleast('0.27.0')) {
|
if (context.hsApi.clientHelpers.isAtleast('0.27.0')) {
|
||||||
|
|||||||
Reference in New Issue
Block a user