@@ -9,7 +9,7 @@ namespace GitHub.Unity
9
9
{
10
10
class PublishView : Subview
11
11
{
12
- private static readonly Vector2 viewSize = new Vector2 ( 300 , 250 ) ;
12
+ private static readonly Vector2 viewSize = new Vector2 ( 400 , 350 ) ;
13
13
14
14
private const string WindowTitle = "Publish" ;
15
15
private const string Header = "Publish this repository to GitHub" ;
@@ -211,11 +211,6 @@ public override void OnGUI()
211
211
212
212
GUILayout . Space ( Styles . PublishViewSpacingHeight ) ;
213
213
214
- if ( error != null )
215
- GUILayout . Label ( error , Styles . ErrorLabel ) ;
216
-
217
- GUILayout . FlexibleSpace ( ) ;
218
-
219
214
GUILayout . BeginHorizontal ( ) ;
220
215
{
221
216
GUILayout . FlexibleSpace ( ) ;
@@ -240,7 +235,7 @@ public override void OnGUI()
240
235
{
241
236
Logger . Error ( ex , "Repository Create Error Type:{0}" , ex . GetType ( ) . ToString ( ) ) ;
242
237
243
- error = GetPublishErrorMessage ( ex ) ;
238
+ error = ex . Message ;
244
239
isBusy = false ;
245
240
return ;
246
241
}
@@ -264,18 +259,13 @@ public override void OnGUI()
264
259
}
265
260
GUILayout . EndHorizontal ( ) ;
266
261
GUILayout . Space ( 10 ) ;
267
- }
268
- EditorGUI . EndDisabledGroup ( ) ;
269
- }
270
262
271
- private string GetPublishErrorMessage ( Exception ex )
272
- {
273
- if ( ex . Message . StartsWith ( PublishLimtPrivateRepositoriesError ) )
274
- {
275
- return PublishLimtPrivateRepositoriesError ;
276
- }
263
+ if ( error != null )
264
+ GUILayout . Label ( error , Styles . ErrorLabel ) ;
277
265
278
- return ex . Message ;
266
+ GUILayout . FlexibleSpace ( ) ;
267
+ }
268
+ EditorGUI . EndDisabledGroup ( ) ;
279
269
}
280
270
281
271
public override bool IsBusy
0 commit comments