[GS] Add information to compilation errors sent back from gama-server #172
Labels
About GAMA Server
This issue concerns GAMA server usage
🤗 Enhancement
This is a request for enhancement
Is your request related to a problem? Please describe.
When trying to run through gama-server models on which you are currently working, it often happens that there are compilation errors. In that case gama-server returns the list of errors to the client so they know why the model cannot run.
The problem is that those errors are just the line of text of the actual error objects, lacking the whole context, like in which file and line they appear as well as their "level" of error: real compilation errors are mixed with warnings and info but we don't know which is which.
For example here is what I get for trying to compile a small model:
And so it's not very convenient to quickly fix the problems, and it's impossible to handle it programmatically (the client could print the info in a certain way, the errors in another for example)
Describe the improvement you'd like
A more detailed output of the compilation problems, maybe return an object instead of a message in that case ?
The text was updated successfully, but these errors were encountered: