Spaces:
Runtime error
Runtime error
Commit
·
2d2160d
1
Parent(s):
978b4d9
up
Browse files- src/app/engine/render.ts +4 -2
src/app/engine/render.ts
CHANGED
@@ -116,11 +116,11 @@ export async function getRender(renderId: string) {
|
|
116 |
|
117 |
let defaulResult: RenderedScene = {
|
118 |
renderId: "",
|
119 |
-
status: "
|
120 |
assetUrl: "",
|
121 |
alt: "",
|
122 |
maskUrl: "",
|
123 |
-
error: "
|
124 |
segments: []
|
125 |
}
|
126 |
|
@@ -153,6 +153,8 @@ export async function getRender(renderId: string) {
|
|
153 |
return response
|
154 |
} catch (err) {
|
155 |
console.error(err)
|
|
|
|
|
156 |
// Gorgon.clear(cacheKey)
|
157 |
return defaulResult
|
158 |
}
|
|
|
116 |
|
117 |
let defaulResult: RenderedScene = {
|
118 |
renderId: "",
|
119 |
+
status: "pending",
|
120 |
assetUrl: "",
|
121 |
alt: "",
|
122 |
maskUrl: "",
|
123 |
+
error: "",
|
124 |
segments: []
|
125 |
}
|
126 |
|
|
|
153 |
return response
|
154 |
} catch (err) {
|
155 |
console.error(err)
|
156 |
+
defaulResult.status = "error"
|
157 |
+
defaulResult.error = `${err}`
|
158 |
// Gorgon.clear(cacheKey)
|
159 |
return defaulResult
|
160 |
}
|