Git repository hosting, collaboration, and discovery for the Fediverse.
Error handling fixes
parent: tbd commit: 5eaea71
1 | use ; |
2 | |
3 | use ; |
4 | use |
5 | , |
6 | , | Instance
7 | , | ObjectBackend
8 | , |
9 | , | AnySetting
10 | , |
11 | ; |
12 | |
13 | use Result; |
14 | use ; |
15 | use info; |
16 | |
17 | |
18 | async |
19 | ; | init
20 | ?; | install
21 | |
22 | let start = now; |
23 | let pool = connect_other |
24 | ?, | from_str
25 | parse .unwrap, | .
26 | |
27 | .unwrap; |
28 | |
29 | let mut operation_state = new; |
30 | |
31 | let mut user = pool |
32 | . |
33 | .await?; |
34 | |
35 | let bio = user. .await?; |
36 | |
37 | info!; |
38 | |
39 | let repositories = user |
40 | .repositories |
41 | .await?; |
42 | |
43 | let repository = repositories.first .unwrap; |
44 | |
45 | let mut repository = pool |
46 | . |
47 | .await?; |
48 | |
49 | info! |
50 | "Repository description: {}", |
51 | repository.? | .await
52 | ; |
53 | |
54 | info! |
55 | "User Bio Setting: {}", |
56 | user.? | .await
57 | ; |
58 | |
59 | Ok |
60 | |
61 |