@@ -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" ;
@@ -228,11 +228,6 @@ public override void OnGUI()
228
228
229
229
GUILayout . Space ( Styles . PublishViewSpacingHeight ) ;
230
230
231
- if ( error != null )
232
- GUILayout . Label ( error , Styles . ErrorLabel ) ;
233
-
234
- GUILayout . FlexibleSpace ( ) ;
235
-
236
231
GUILayout . BeginHorizontal ( ) ;
237
232
{
238
233
GUILayout . FlexibleSpace ( ) ;
@@ -257,7 +252,7 @@ public override void OnGUI()
257
252
{
258
253
Logger . Error ( ex , "Repository Create Error Type:{0}" , ex . GetType ( ) . ToString ( ) ) ;
259
254
260
- error = GetPublishErrorMessage ( ex ) ;
255
+ error = ex . Message ;
261
256
isBusy = false ;
262
257
return ;
263
258
}
@@ -281,18 +276,13 @@ public override void OnGUI()
281
276
}
282
277
GUILayout . EndHorizontal ( ) ;
283
278
GUILayout . Space ( 10 ) ;
284
- }
285
- EditorGUI . EndDisabledGroup ( ) ;
286
- }
287
279
288
- private string GetPublishErrorMessage ( Exception ex )
289
- {
290
- if ( ex . Message . StartsWith ( PublishLimtPrivateRepositoriesError ) )
291
- {
292
- return PublishLimtPrivateRepositoriesError ;
293
- }
280
+ if ( error != null )
281
+ GUILayout . Label ( error , Styles . ErrorLabel ) ;
294
282
295
- return ex . Message ;
283
+ GUILayout . FlexibleSpace ( ) ;
284
+ }
285
+ EditorGUI . EndDisabledGroup ( ) ;
296
286
}
297
287
298
288
public override bool IsBusy
0 commit comments