Skip to content

Commit

Permalink
* Modified to put log after finishing script file generation.
Browse files Browse the repository at this point in the history
  • Loading branch information
kimsama committed Aug 9, 2016
1 parent b969754 commit d21265b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions GDataPlugin/Editor/GoogleMachineEditor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,10 @@ public override void OnInspectorGUI()

if (GUILayout.Button("Generate"))
{
if (Generate(this.machine) == null)
Debug.LogError("Failed to create a script from Google.");
if (Generate(this.machine) != null)
Debug.Log("Successfully generated!");
else
Debug.LogError("Failed to create a script from Google Spreadsheet.");
}
}

Expand Down

0 comments on commit d21265b

Please sign in to comment.