Merge pull request #1929 from balena-os/splash-image-no-fail

Avoid splash image failures if image is corrupt
This commit is contained in:
bulldozer-balena[bot] 2022-05-06 19:03:30 +00:00 committed by GitHub
commit b0a89cf4b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -84,7 +84,9 @@ export class SplashImage extends ConfigBackend {
// Write the buffer to the given location
await hostUtils.writeToBoot(where, buffer);
} else {
throw new Error('Splash image should be a base64 encoded PNG image');
log.error(
'Expected splash image to be a base64 encoded PNG image. Skipping write.',
);
}
}