Refine error logging in manager.rb to simplify error output during transition failures

This commit is contained in:
Ari Karim 2025-05-27 14:16:08 +03:00
parent 94b23d46b7
commit c69f4752c1
No known key found for this signature in database
GPG Key ID: 1A5559E2E32F1805

View File

@ -63,7 +63,7 @@ module Workflower
true true
rescue Exception => e rescue Exception => e
puts "ERROR MESSAGE: #{e.message}" puts "ERROR MESSAGE: #{e.message}"
puts "ERROR CLASS: #{e}" puts "ERROR: #{e}"
@calling_model.errors.add(@calling_model.workflower_state_column_name, :transition_faild) @calling_model.errors.add(@calling_model.workflower_state_column_name, :transition_faild)
false false
end end