Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make circuit error slightly more verbose #6839

Merged
merged 2 commits into from
Nov 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion code/modules/integrated_electronics/core/printer.dm
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,8 @@
program = null
return
if(istext(new_input))
to_chat(usr, SPAN_NOTICE("[new_input] load blueprint pressed"))
to_chat(usr, SPAN_NOTICE("[new_input]"))
to_chat(usr, SPAN_NOTICE("Load blueprint pressed"))
log_game("[usr] cloned circuit [new_input]")
var/validation = SScircuit.validate_electronic_assembly(new_input)
// Validation error codes are returned as text.
Expand Down
4 changes: 2 additions & 2 deletions code/modules/integrated_electronics/core/saved_circuits.dm
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@
var/assembly_path = all_assemblies[assembly_params["type"]]
var/obj/item/electronic_assembly/assembly = cached_assemblies[assembly_path]
if(!assembly)
return "Invalid assembly type."
return "Invalid assembly type: \"[assembly_params["type"]]\"."

// Make sure the container is supposed to have that type of assembly.
if(possible_container)
Expand Down Expand Up @@ -295,7 +295,7 @@
var/component_path = all_components[component_params["type"]]
var/obj/item/integrated_circuit/component = cached_components[component_path]
if(!component)
return "Invalid component type."
return "Invalid component type: \"[component_params["type"]]\"."

// Add temporary component to assembly_components list, to be used later when verifying the wires
assembly_components.Add(component)
Expand Down
Loading