Skip to content

Commit 84b9708

Browse files
committed
Properly log output if sync worker compilation fails.
1 parent 84fc564 commit 84b9708

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/compile_webworker.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Future<void> main() async {
3030

3131
if (dbWorkerProcess.exitCode != 0) {
3232
throw Exception(
33-
'Could not compile db worker: ${dbWorkerProcess.stdout.toString()}');
33+
'Could not compile db worker.\nstdout: ${dbWorkerProcess.stdout.toString()}\nstderr: ${dbWorkerProcess.stderr.toString()}');
3434
}
3535

3636
final syncWorkerFilename = 'powersync_sync.worker.js';
@@ -54,7 +54,7 @@ Future<void> main() async {
5454

5555
if (syncWorkerProcess.exitCode != 0) {
5656
throw Exception(
57-
'Could not compile sync worker: ${dbWorkerProcess.stdout.toString()}');
57+
'Could not compile sync worker:\nstdout: ${syncWorkerProcess.stdout.toString()}\nstderr: ${syncWorkerProcess.stderr.toString()}');
5858
}
5959

6060
// Copy this to all demo apps web folders

0 commit comments

Comments
 (0)