mirror of
https://github.com/withastro/astro.git
synced 2025-01-06 22:10:10 -05:00
[ci] format
This commit is contained in:
parent
bda1d294f2
commit
f8b27b07c0
1 changed files with 6 additions and 2 deletions
|
@ -79,10 +79,14 @@ export async function getImage(
|
|||
message: AstroErrorData.ExpectedImageOptions.message(JSON.stringify(options)),
|
||||
});
|
||||
}
|
||||
if(typeof options.src === 'undefined') {
|
||||
if (typeof options.src === 'undefined') {
|
||||
throw new AstroError({
|
||||
...AstroErrorData.ExpectedImage,
|
||||
message: AstroErrorData.ExpectedImage.message(options.src, 'undefined', JSON.stringify(options))
|
||||
message: AstroErrorData.ExpectedImage.message(
|
||||
options.src,
|
||||
'undefined',
|
||||
JSON.stringify(options)
|
||||
),
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue