Skip to content
This repository was archived by the owner on Jul 6, 2025. It is now read-only.

Commit ee1bcc5

Browse files
author
Je
committed
refactor: strip renderer stderr color
1 parent 66b83f2 commit ee1bcc5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

project.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1269,7 +1269,7 @@ export class Project {
12691269
} catch (err) {
12701270
ret.status = 500
12711271
ret.head = ['<title>Error 500 - Aleph.js</title>']
1272-
ret.body = `<main><pre>${err.stack}</pre></main>`
1272+
ret.body = `<main><pre>${colors.stripColor(err.stack)}</pre></main>`
12731273
log.error(err)
12741274
}
12751275
return ret
@@ -1290,7 +1290,7 @@ export class Project {
12901290
} catch (err) {
12911291
ret.status = 500
12921292
ret.head = ['<title>Error 500 - Aleph.js</title>']
1293-
ret.body = `<main><pre>${err.stack}</pre></main>`
1293+
ret.body = `<main><pre>${colors.stripColor(err.stack)}</pre></main>`
12941294
log.error(err)
12951295
}
12961296
return ret

0 commit comments

Comments
 (0)