Skip to content

Commit 4a14a5d

Browse files
committed
Better error logging
1 parent 8445ccf commit 4a14a5d

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

lib/src/flutterflow_main.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@ Future<void> appMain(List<String> args) async {
7171
break;
7272
default:
7373
}
74-
} catch (_) {
74+
} catch (e) {
75+
stderr.write('Error running the app: $e\n');
7576
exit(1);
7677
}
7778
}

test/integration_test.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ bool buildProject(String project) {
1515
var result = Process.runSync('flutter', ['build', 'web'],
1616
workingDirectory: p.normalize(project), runInShell: true);
1717

18+
print(result.stdout);
19+
print(result.stderr);
20+
1821
return result.exitCode == 0;
1922
}
2023

0 commit comments

Comments
 (0)