|
@@ -17,6 +17,9 @@ func ImportPlanRoute(w http.ResponseWriter, r *http.Request){
|
|
}
|
|
}
|
|
tempname := readFile(input)
|
|
tempname := readFile(input)
|
|
result := xlsx.ImportXLSX(tempname)
|
|
result := xlsx.ImportXLSX(tempname)
|
|
|
|
+ if result == nil{
|
|
|
|
+ json.NewEncoder(w).Encode(struct{Error string}{Error: "Error while processing file"})
|
|
|
|
+ }
|
|
json.NewEncoder(w).Encode(result)
|
|
json.NewEncoder(w).Encode(result)
|
|
}
|
|
}
|
|
|
|
|