[ox/std] Add const char *toStr(const ox::Error&)
This commit is contained in:
		
							
								
								
									
										5
									
								
								deps/ox/src/ox/std/error.hpp
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										5
									
								
								deps/ox/src/ox/std/error.hpp
									
									
									
									
										vendored
									
									
								
							@@ -75,6 +75,11 @@ struct [[nodiscard]] Error {
 | 
			
		||||
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
[[nodiscard]]
 | 
			
		||||
constexpr auto toStr(const Error &err) noexcept {
 | 
			
		||||
	return err.msg;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
struct Exception: public std::exception {
 | 
			
		||||
	const char *msg = nullptr;
 | 
			
		||||
	const char *file = nullptr;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user