Skip to content

Commit 90972f1

Browse files
committed
fix fixtures data
1 parent 9827bb5 commit 90972f1

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

models/fixtures/repo_unit.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,12 @@
1212
type: 2
1313
index: 0
1414
config: "{}"
15+
created_unix: 946684810
16+
17+
-
18+
id: 3
19+
repo_id: 1
20+
type: 7
21+
index: 0
22+
config: "{}"
1523
created_unix: 946684810

models/fixtures/team.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
authorize: 4 # owner
77
num_repos: 2
88
num_members: 1
9+
unit_types: '[1,2,3,4,5,6,7,8,9]'
910

1011
-
1112
id: 2
@@ -15,6 +16,7 @@
1516
authorize: 2 # write
1617
num_repos: 1
1718
num_members: 2
19+
unit_types: '[1,2,3,4,5,6,7,8,9]'
1820

1921
-
2022
id: 3
@@ -24,6 +26,7 @@
2426
authorize: 4 # owner
2527
num_repos: 0
2628
num_members: 1
29+
unit_types: '[1,2,3,4,5,6,7,8,9]'
2730

2831
-
2932
id: 4
@@ -33,3 +36,4 @@
3336
authorize: 4 # owner
3437
num_repos: 0
3538
num_members: 1
39+
unit_types: '[1,2,3,4,5,6,7,8,9]'

modules/context/repo.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,7 @@ func CheckUnit(unitType models.UnitType) macaron.Handler {
519519
}
520520
}
521521
if !find {
522-
ctx.Handle(404, "CheckUnit", fmt.Errorf(ctx.Tr("units.error.unit_not_allowed")))
522+
ctx.Handle(404, "CheckUnit", fmt.Errorf("%s: %v", ctx.Tr("units.error.unit_not_allowed"), unitType))
523523
}
524524
}
525525
}

0 commit comments

Comments
 (0)