Skip to content
Snippets Groups Projects
Commit dfa3115d authored by Ruanito Santos's avatar Ruanito Santos
Browse files

web: Add windows error to INEP invalid

parent 16de36e0
Branches
No related tags found
No related merge requests found
......@@ -3,6 +3,10 @@ package controllers;
import java.io.*;
import java.util.ArrayList;
import java.awt.*;
import javax.swing.JOptionPane;
import play.*;
import play.mvc.*;
import play.data.*;
......@@ -32,8 +36,10 @@ public class Install extends Controller {
String proxyUser = requestData.get("proxyUser");
String proxyPass = requestData.get("proxyPass");
if ((inep == null) || (inep.length() < 6) || (inep.length() > 12))
return badRequest("Inep inválido");
if ((inep == null) || (inep.length() < 6) || (inep.length() > 12)) {
JOptionPane.showMessageDialog(null, "Inep Inválido", "INEP", JOptionPane.ERROR_MESSAGE);
return ok(views.html.install.index.render());
}
School school = null;
......@@ -45,8 +51,10 @@ public class Install extends Controller {
return internalServerError();
}
if (school == null)
return badRequest("Inep inválido");
if (school == null) {
JOptionPane.showMessageDialog(null, "Inep Inválido", "INEP", JOptionPane.ERROR_MESSAGE);
return ok(views.html.install.index.render());
}
// build the package
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment