[minor] Working on error detection