XCMer / larry-four-generator

Larry Laravel Generator For Laravel Four
Other
131 stars 27 forks source link

Bug Problem: no line number specified when an error occurs. If you have over 1000 line files, this is a huge issue. #13

Closed Xees closed 11 years ago

Xees commented 11 years ago

I have a massive database file that i want to generate from.

The problem is, there might be some mistakes and larry4 does not give me a specific line where the error occured.

XCMer commented 11 years ago

LarryFour does give you the line number of the error in the input file. Can you elaborate?

Xees commented 11 years ago

My error was a misspilled enum.

I wrote it like this:

access enum "admin","jack","

by mistake, i forgot to remove the last qoute, and my file was huge. The only error larry4 gave me was Undefined Index: type. No line number at all.

XCMer commented 11 years ago

That error was generated by PHP (and not Larry). It was Larry's fault that it didn't handle it. I've fixed it in 98ebb89 so that you'll get an error with line numbers in such cases.