fix: only invoke error command when specified