Added debug for script that failed to load in the log

This info is usefull if a syntax error is found in a script file. When
using the demon, this could not catched.