mirror of
https://github.com/leporello-js/leporello-js
synced 2026-01-13 13:04:30 -08:00
WIP
This commit is contained in:
@@ -42,10 +42,10 @@ export const stringify_for_header = v => {
|
||||
if(v.status == null) {
|
||||
return `Promise<pending>`
|
||||
} else {
|
||||
if(status.ok) {
|
||||
return `Promise<fulfilled: ${stringify_for_header(status.value)}>`
|
||||
if(v.status.ok) {
|
||||
return `Promise<fulfilled: ${stringify_for_header(v.status.value)}>`
|
||||
} else {
|
||||
return `Promise<fulfilled: ${stringify_for_header(status.error)}>`
|
||||
return `Promise<rejected: ${stringify_for_header(v.status.error)}>`
|
||||
}
|
||||
}
|
||||
} else if(isError(v)) {
|
||||
|
||||
Reference in New Issue
Block a user