Skip to content

Commit a5e4946

Browse files
committed
excel2tex: handle case when no data have been copied
1 parent ce667e4 commit a5e4946

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

main.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,10 @@ func main() {
297297
glg.Fatalf("Error while parsing excel data: %v", err)
298298
}
299299

300+
if !f.Force && len(interFormat.Rows) == 0 {
301+
glg.Fatal("No data found. Did you copy from excel? Use --help for details.")
302+
}
303+
300304
glg.Debug("Setting properties for internally-processed table")
301305
interFormat.Title = f.Title
302306
interFormat.LatexColumnType = f.ColType

0 commit comments

Comments
 (0)