fix: npm run fails silently. closes #2959

if the missing command is "test", logs a text error, otherwise creates an actual error.