assisi / playground

Extensions to the Enki simulator for the ASSISI|bf project.
Other
2 stars 3 forks source link

Improve specificity of error messages #71

Open rmm-fcul opened 8 years ago

rmm-fcul commented 8 years ago

The playground emits certain error messages that do not contain enough information to localise them quickly. For instance, the error message "Unknown device ..." has exactly the same form in multiple source files:

CasuHandler.cpp
160:            cerr << "Unknown device " << device << endl;

BeeHandler.cpp
101:            cerr << "Unknown device " << device << endl;

EPuckHandler.cpp
87:            cerr << "Unknown device " << command << " for " << name << endl;

This makes tracking down other bugs (e.g. #70) more tedious.

Please can error messages provide further context (perhaps the file & line # if this can be automatically generated?)