Should be error, not msg. Same for the rest of the file.