Bob/headers/helperFunctions/ErrorUtils.h
Bobby Lucero 17c15e5bad Various changes
Arrays, loops, ternary, and other major features. Check doc
2025-08-06 21:42:09 -04:00

10 lines
391 B
C++

#pragma once
#include <string>
// Common error message utilities
namespace ErrorUtils {
// Generate consistent operator error messages with single quotes
inline std::string makeOperatorError(const std::string& op, const std::string& leftType, const std::string& rightType) {
return "'" + op + "' is not supported between '" + leftType + "' and '" + rightType + "'";
}
}