Normalise the caught value before it is interpolated (make x86)
This commit is contained in:
1 parent
ae0b1d9b60
commit
af0134f63c
1 file changed
+5
-1
@@ -72,7 +72,11 @@ export const requireAdmin = sdk.setupOnInit(async (effects) => {
|
|||||||
},
|
},
|
||||||
)
|
)
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.warn(`The admin probe did not run, so it was ignored: ${error}`)
|
// A caught value is `unknown`, so it is normalised before it is used, the
|
||||||
|
// same way the two actions normalise stdout and stderr.
|
||||||
|
console.warn(
|
||||||
|
`The admin probe did not run, so it was ignored: ${String(error)}`,
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (configured) {
|
if (configured) {
|
||||||
|
|||||||
Reference in new issue
Block a user