updated build system
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				BlockStorage/repertory/pipeline/head This commit looks good
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	BlockStorage/repertory/pipeline/head This commit looks good
				
			This commit is contained in:
		| @@ -92,11 +92,11 @@ template <typename val_t> | ||||
|     } | ||||
|  | ||||
|     if (fmt_val.empty()) { | ||||
|       throw utils::error::create_exception({ | ||||
|           function_name, | ||||
|           "hex string is invalid", | ||||
|           str, | ||||
|       }); | ||||
|       throw utils::error::create_exception(function_name, | ||||
|                                            { | ||||
|                                                "hex string is invalid", | ||||
|                                                str, | ||||
|                                            }); | ||||
|     } | ||||
|  | ||||
|     if (fmt_val.length() % 2U) { | ||||
|   | ||||
| @@ -101,10 +101,10 @@ public: | ||||
|         overloaded{ | ||||
|             [](const data_type &value) -> data_type { return value; }, | ||||
|             [](auto &&) -> data_type { | ||||
|               throw utils::error::create_exception({ | ||||
|                   function_name, | ||||
|                   "data type not supported", | ||||
|               }); | ||||
|               throw utils::error::create_exception( | ||||
|                   function_name, { | ||||
|                                      "data type not supported", | ||||
|                                  }); | ||||
|             }, | ||||
|         }, | ||||
|         value_); | ||||
| @@ -138,11 +138,11 @@ public: | ||||
|       } break; | ||||
|  | ||||
|       default: | ||||
|         throw utils::error::create_exception({ | ||||
|             function_name, | ||||
|             "column type not implemented", | ||||
|             std::to_string(column_type), | ||||
|         }); | ||||
|         throw utils::error::create_exception(function_name, | ||||
|                                              { | ||||
|                                                  "column type not implemented", | ||||
|                                                  std::to_string(column_type), | ||||
|                                              }); | ||||
|       } | ||||
|  | ||||
|       columns_[name] = db_column{col, name, value}; | ||||
|   | ||||
| @@ -124,10 +124,10 @@ encrypt_data(const std::array<unsigned char, | ||||
|           mac.data(), &mac_length, buffer, buffer_size, | ||||
|           reinterpret_cast<const unsigned char *>(&size), sizeof(size), nullptr, | ||||
|           iv.data(), key.data()) != 0) { | ||||
|     throw repertory::utils::error::create_exception({ | ||||
|         function_name, | ||||
|         "encryption failed", | ||||
|     }); | ||||
|     throw repertory::utils::error::create_exception(function_name, | ||||
|                                                     { | ||||
|                                                         "encryption failed", | ||||
|                                                     }); | ||||
|   } | ||||
|  | ||||
|   std::memcpy(res.data(), iv.data(), iv.size()); | ||||
|   | ||||
| @@ -29,7 +29,8 @@ namespace repertory::utils::error { | ||||
| create_error_message(std::vector<std::string_view> items) -> std::string; | ||||
|  | ||||
| [[nodiscard]] auto | ||||
| create_exception(std::vector<std::string_view> items) -> std::runtime_error; | ||||
| create_exception(std::string_view function_name, | ||||
|                  std::vector<std::string_view> items) -> std::runtime_error; | ||||
|  | ||||
| struct i_exception_handler { | ||||
|   virtual ~i_exception_handler() {} | ||||
|   | ||||
| @@ -92,32 +92,32 @@ auto create_hash_blake2b_t(const unsigned char *data, | ||||
|   crypto_generichash_blake2b_state state{}; | ||||
|   auto res = crypto_generichash_blake2b_init(&state, nullptr, 0U, hash.size()); | ||||
|   if (res != 0) { | ||||
|     throw utils::error::create_exception({ | ||||
|         function_name, | ||||
|         "failed to initialize blake2b", | ||||
|         std::to_string(hash.size() * 8U), | ||||
|         std::to_string(res), | ||||
|     }); | ||||
|     throw utils::error::create_exception(function_name, | ||||
|                                          { | ||||
|                                              "failed to initialize blake2b", | ||||
|                                              std::to_string(hash.size() * 8U), | ||||
|                                              std::to_string(res), | ||||
|                                          }); | ||||
|   } | ||||
|  | ||||
|   res = crypto_generichash_blake2b_update(&state, data, data_size); | ||||
|   if (res != 0) { | ||||
|     throw utils::error::create_exception({ | ||||
|         function_name, | ||||
|         "failed to update blake2b", | ||||
|         std::to_string(hash.size() * 8U), | ||||
|         std::to_string(res), | ||||
|     }); | ||||
|     throw utils::error::create_exception(function_name, | ||||
|                                          { | ||||
|                                              "failed to update blake2b", | ||||
|                                              std::to_string(hash.size() * 8U), | ||||
|                                              std::to_string(res), | ||||
|                                          }); | ||||
|   } | ||||
|  | ||||
|   res = crypto_generichash_blake2b_final(&state, hash.data(), hash.size()); | ||||
|   if (res != 0) { | ||||
|     throw utils::error::create_exception({ | ||||
|         function_name, | ||||
|         "failed to finalize blake2b", | ||||
|         std::to_string(hash.size() * 8U), | ||||
|         std::to_string(res), | ||||
|     }); | ||||
|     throw utils::error::create_exception(function_name, | ||||
|                                          { | ||||
|                                              "failed to finalize blake2b", | ||||
|                                              std::to_string(hash.size() * 8U), | ||||
|                                              std::to_string(res), | ||||
|                                          }); | ||||
|   } | ||||
|  | ||||
|   return hash; | ||||
|   | ||||
| @@ -55,10 +55,10 @@ struct file_times final { | ||||
|       return written; | ||||
|     } | ||||
|  | ||||
|     throw utils::error::create_exception({ | ||||
|         function_name, | ||||
|         "type_type not supported", | ||||
|     }); | ||||
|     throw utils::error::create_exception(function_name, | ||||
|                                          { | ||||
|                                              "type_type not supported", | ||||
|                                          }); | ||||
|   } | ||||
| }; | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user