Fixed error reporting for addNote