Skip to content

Commit

Permalink
Print error
Browse files Browse the repository at this point in the history
  • Loading branch information
anhappdev committed Jan 14, 2025
1 parent a99e40b commit 0def107
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions flutter/lib/benchmark/state.dart
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ class BenchmarkState extends ChangeNotifier {
await setTaskConfig(name: _store.chosenConfigurationName);
deferredLoadResources();
} catch (e, trace) {
print("can't load resources: $e");
print("Can't load resources: $e");
print(trace);
error = e;
stackTrace = trace;
Expand All @@ -122,7 +122,7 @@ class BenchmarkState extends ChangeNotifier {
try {
await loadResources(downloadMissing: false);
} catch (e, trace) {
print("can't load resources: $e");
print("Can't load resources: $e");
print(trace);
error = e;
stackTrace = trace;
Expand Down Expand Up @@ -164,7 +164,7 @@ class BenchmarkState extends ChangeNotifier {
await state.setTaskConfig(name: store.chosenConfigurationName);
state.deferredLoadResources();
} catch (e, trace) {
print("can't load resources: $e");
print("Can't load resources: $e");
print(trace);
state.error = e;
state.stackTrace = trace;
Expand Down Expand Up @@ -199,7 +199,7 @@ class BenchmarkState extends ChangeNotifier {
taskSelection[kv.key] = kv.value as bool;
}
} catch (e, t) {
print('task selection parse fail: $e');
print('Task selection parse fail: $e');
print(t);
}
}
Expand Down Expand Up @@ -255,7 +255,7 @@ class BenchmarkState extends ChangeNotifier {
await taskRunner.runBenchmarks(_benchmarkStore, currentLogDir);

if (lastResult == null) {
print('benchmark aborted');
print('Benchmark aborted');
} else {
print('Benchmarks finished');

Expand All @@ -267,6 +267,7 @@ class BenchmarkState extends ChangeNotifier {
_doneRunning = taskRunner.aborting ? null : true;
} catch (e) {
_doneRunning = null;
print('Error: $e');
rethrow;
} finally {
if (currentLogDir.isNotEmpty && !_store.keepLogs) {
Expand Down

0 comments on commit 0def107

Please sign in to comment.